Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the core structure for a new service
func (*App) Drain ¶
func (a *App) Drain()
Drain notify all handlers to enter in draining mode. It means they are no longer accepting new requests, but they can finish all in-flight requests
func (*App) RegisterHandler ¶
RegisterHandler adds the given handler to the list of handlers
Directories ¶
Path | Synopsis |
---|---|
Package bg aims to manage all background jobs run on lego.
|
Package bg aims to manage all background jobs run on lego. |
Package config implements logic to load dynamic configuration from various sources It also defines environment specific configuraton (dev, prod, ...)
|
Package config implements logic to load dynamic configuration from various sources It also defines environment specific configuraton (dev, prod, ...) |
adapter/etcd
Package etcd reads configuration from etcd
|
Package etcd reads configuration from etcd |
adapter/file
Package file reads configuration from a JSON file
|
Package file reads configuration from a JSON file |
Package ctx defines the context types, which carry information defined for a specific scope (application, request, ...) A context can be passed across API boundaries and between processes.
|
Package ctx defines the context types, which carry information defined for a specific scope (application, request, ...) A context can be passed across API boundaries and between processes. |
app
Package app defines an application context, which carries information about the application environment.
|
Package app defines an application context, which carries information about the application environment. |
journey
Package journey defines a context type, which carries information about a specific inbound request.
|
Package journey defines a context type, which carries information about a specific inbound request. |
Package handler contains the main logic to accept external requests.
|
Package handler contains the main logic to accept external requests. |
http
Package http is an extra layer on to of the standard go net/http package.
|
Package http is an extra layer on to of the standard go net/http package. |
Package log implements logging with different levels of severity.
|
Package log implements logging with different levels of severity. |
Package testing is an extension to the standard go testing package tailored for testing the lego framework.
|
Package testing is an extension to the standard go testing package tailored for testing the lego framework. |
Click to show internal directories.
Click to hide internal directories.