Documentation
¶
Index ¶
- type Application
- func (a *Application) AttachAppObserver(observer contracts.AppObserverInterface)
- func (a *Application) DetachAppObserver(observer contracts.AppObserverInterface)
- func (a *Application) GetConfig() *viper.Viper
- func (a *Application) GetLog() *logs.Log
- func (a *Application) Init()
- func (a *Application) NotifyStartServerAfterEvent(ctx context.Context)
- func (a *Application) NotifyStartServerBeforeEvent(ctx context.Context)
- func (a *Application) SetConfig(config *viper.Viper)
- func (a *Application) SetLog(log *logs.Log)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Log *logs.Log Config *viper.Viper // contains filtered or unexported fields }
func GetApp ¶
func GetApp() *Application
func (*Application) AttachAppObserver ¶
func (a *Application) AttachAppObserver(observer contracts.AppObserverInterface)
func (*Application) DetachAppObserver ¶
func (a *Application) DetachAppObserver(observer contracts.AppObserverInterface)
func (*Application) GetConfig ¶
func (a *Application) GetConfig() *viper.Viper
func (*Application) GetLog ¶
func (a *Application) GetLog() *logs.Log
func (*Application) Init ¶
func (a *Application) Init()
func (*Application) NotifyStartServerAfterEvent ¶
func (a *Application) NotifyStartServerAfterEvent(ctx context.Context)
func (*Application) NotifyStartServerBeforeEvent ¶
func (a *Application) NotifyStartServerBeforeEvent(ctx context.Context)
func (*Application) SetConfig ¶
func (a *Application) SetConfig(config *viper.Viper)
func (*Application) SetLog ¶
func (a *Application) SetLog(log *logs.Log)
Click to show internal directories.
Click to hide internal directories.