Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle interface {
// Start causes the component to initialize any resources it couldn't during its creation, e.g. timers.
// It must be non-blocking.
Start() error
// Stop causes the component to release any resources it has acquired, e.g. timers.
Stop(ctx context.Context) error
// RegisterHttpHandlers registers the HTTP handlers for this component.
RegisterHttpHandlers(publicMux *http.ServeMux, internalMux *http.ServeMux)
}
Lifecycle is an isolated unit of functionality that can be started and stopped.
Click to show internal directories.
Click to hide internal directories.