Documentation ¶
Index ¶
- type App
- func (app *App) Close() error
- func (app *App) Errors() <-chan error
- func (app *App) RegisterService(srv interface{}) error
- func (app *App) RegisterServiceConfig(cfg interface{}) error
- func (app *App) Router() *gorillamux.Router
- func (app *App) Service(srv interface{}) error
- func (app *App) ServiceConfig(cfg interface{}) error
- func (app *App) SetMiddleware(mid func(http.Handler) http.Handler) error
- func (app *App) Start(ctx context.Context) error
- func (app *App) Stop(ctx context.Context) error
- type Config
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 main Key Manager application object
func (*App) RegisterService ¶
func (*App) RegisterServiceConfig ¶
RegisterServiceConfig register a config cfg MUST be a pointer to a struct
func (*App) Router ¶
func (app *App) Router() *gorillamux.Router
func (*App) ServiceConfig ¶
ServiceConfig loads a service configuration into cfg It expects a pointer to a struct and then sets its value
func (*App) SetMiddleware ¶
Click to show internal directories.
Click to hide internal directories.