Documentation ¶
Index ¶
- func NewContext(ctx context.Context, s AppInfo) context.Context
- type App
- type AppInfo
- type Option
- func Context(ctx context.Context) Option
- func ID(id string) Option
- func Logger(logger *logger.Logger) Option
- func Migration(m *data.DBMigration) Option
- func Name(name string) Option
- func Services(srvs ...service.Service) 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 Option ¶
type Option func(o *options)
func Migration ¶
func Migration(m *data.DBMigration) Option
func StopTimeout ¶
Click to show internal directories.
Click to hide internal directories.