app

package
v0.0.0-...-58584ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis
http

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL