Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotStarted = errors.New("adminapp: app has not started") ErrAlreadyStarted = errors.New("adminapp: app already started") ErrMissingSystemModule = errors.New("adminapp: system module is required") ErrNilContext = errors.New("adminapp: context is nil") ErrShutdownTimeout = errors.New("adminapp: shutdown timed out") )
Functions ¶
func ApplyServerTimeouts ¶
ApplyServerTimeouts fills in the framework's connection timeouts on server. Timeouts the application already set are kept. Applications that build their own http.Server should call it too.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is a validated, runnable application.
func New ¶
New copies and validates configuration and module declarations. It does not open a database, call Create, or listen.
func (*App) ListenerAddr ¶
ListenerAddr returns the bound address after Run has started listening.
Click to show internal directories.
Click to hide internal directories.