Versions in this module Expand all Collapse all v1 v1.0.4 Sep 17, 2019 v1.0.3 Mar 13, 2019 Changes in this version + type AppModule interface + BeforeDestroy func(fn func(mod AppModule) error) + BeforeStart func(fn func(mod AppModule) error) + Config func() AppModuleConfig + Destroy func() error + Init func() error + SetConfig func(config AppModuleConfig) + type AppModuleConfig interface + Name func() string + Version func() string + func DefaultConfig() AppModuleConfig + func NewConfig(name, version string) AppModuleConfig + type BaseAppModule struct + func (b *BaseAppModule) BeforeDestroy(fn func(mod AppModule) error) + func (b *BaseAppModule) BeforeStart(fn func(mod AppModule) error) + func (b *BaseAppModule) Destroy() error + func (b *BaseAppModule) Init() error + func (b *BaseAppModule) SetConfig(config AppModuleConfig) + func (b BaseAppModule) Config() AppModuleConfig + type Config struct + func (c Config) Name() string + func (c Config) Version() string