Documentation ¶
Index ¶
- func ConfigActiveFromENV(key string) (active string)
- type Application
- type Option
- func ConfigRetriever(path string, format string, active string, prefix string, splitter byte) Option
- func Handler(handler transports.MuxHandler) Option
- func Hooks(h ...hooks.Hook) Option
- func Id(id string) Option
- func LogWriters(writers ...logs.Writer) Option
- func Middleware(middleware transports.Middleware) Option
- func Name(name string) Option
- func Proxy(options ...proxies.Option) Option
- func RegisterValidator(register validators.ValidateRegister) Option
- func ShutdownTimeout(timeout time.Duration) Option
- func Transport(transport transports.Transport) Option
- func Version(version string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigActiveFromENV ¶ added in v0.1.1
Types ¶
type Application ¶
type Application interface { Deploy(service ...services.Service) Application Run(ctx context.Context) Application Sync() }
func New ¶
func New(options ...Option) (app Application)
type Option ¶
func ConfigRetriever ¶
func Handler ¶ added in v1.1.0
func Handler(handler transports.MuxHandler) Option
func LogWriters ¶ added in v1.2.0
func Middleware ¶ added in v1.1.0
func Middleware(middleware transports.Middleware) Option
func RegisterValidator ¶ added in v0.12.0
func RegisterValidator(register validators.ValidateRegister) Option
func ShutdownTimeout ¶ added in v0.12.0
func Transport ¶ added in v1.0.10
func Transport(transport transports.Transport) Option
Click to show internal directories.
Click to hide internal directories.