Documentation
¶
Index ¶
- func NewContext(ctx context.Context, s AppInfo) context.Context
- type App
- type AppInfo
- type Option
- func AfterStart(fn func(context.Context) error) Option
- func AfterStop(fn func(context.Context) error) Option
- func BeforeStart(fn func(context.Context) error) Option
- func BeforeStop(fn func(context.Context) error) Option
- func ID(id string) Option
- func Logger(logger log.Logger) Option
- func Name(name string) Option
- func Server(svs ...transport.Server) Option
- func Signal(sigs ...os.Signal) Option
- func StopTimeout(t time.Duration) Option
- func Version(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is an application components lifecycle manager.
type Option ¶
type Option func(o *options)
Option is an application option.
func AfterStart ¶
AfterStart run funcs after tavern starts
func BeforeStart ¶
BeforeStart run funcs before tavern starts
func BeforeStop ¶
BeforeStop run funcs before tavern stops
Click to show internal directories.
Click to hide internal directories.