Documentation
¶
Index ¶
- type App
- func (app *App) CallMethod(name string) error
- func (c *App) Config() interface{}
- func (app *App) Event(name string) *Event
- func (app *App) GetDB() interface{}
- func (app *App) GetLog() *logrus.Logger
- func (app *App) GetMeta() *Meta
- func (app *App) GetService(name string) (Service, bool)
- func (app *App) Initialize(options ...Option) *App
- func (app *App) InitializeLogger(way LogWay, path string, formatter logrus.Formatter) error
- func (app *App) LoadConfig(configFile, configType string, configStruct interface{}) error
- func (app *App) SetDatabase(db interface{})
- func (app *App) Start()
- func (app *App) Stop()
- func (app *App) Storage() *storage
- func (app *App) Work()
- type ConfigSource
- type Event
- type LogWay
- type Meta
- type Method
- type Option
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Finish func()
// contains filtered or unexported fields
}
func (*App) CallMethod ¶
Call concrete method (should be defined in Initialize.WithMethods)
func (*App) GetService ¶
Return service and flag provide that service isset or not
func (*App) Initialize ¶
Initialize application with option. Logger and Database should be initialized yet
func (*App) InitializeLogger ¶
Initialize logger with given settings
func (*App) LoadConfig ¶
Load configuration from file
func (*App) SetDatabase ¶
func (app *App) SetDatabase(db interface{})
type ConfigSource ¶
type ConfigSource string
type Option ¶
func WithContext ¶
func WithMetaInformation ¶
func WithMethods ¶
func WithServices ¶
func WithStorage ¶
Click to show internal directories.
Click to hide internal directories.