Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDepRunning = errors.New("dependencies is already running") ErrDepNotRunning = errors.New("dependencies are not running yet") ErrDepEmpty = errors.New("dependencies is empty") ErrDepUnknown = errors.New("unknown dependency") ErrBadAction = errors.New("is not a supported action") ErrBadFileFormat = errors.New("is not a supported file format") )
Functions ¶
func OnSyscallStop ¶
func OnSyscallStop(callFunc func())
OnSyscallStop calling a function if you send a system event stop
func OnSyscallUp ¶
func OnSyscallUp(callFunc func())
OnSyscallUp calling a function if you send a system event SIGHUP
func WrapErrors ¶
WrapErrors combining multiple errors
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App application model
func (*App) ConfigFile ¶
ConfigFile set config file path and configs models
type BaseConfig ¶
type BaseConfig struct { Env string `yaml:"env" json:"env" toml:"env"` PidFile string `yaml:"pid" json:"pid" toml:"pid"` //logger Level uint32 `yaml:"level" json:"level" toml:"level"` LogFile string `yaml:"log" json:"log" toml:"log"` }
BaseConfig config model
func (BaseConfig) MarshalEasyJSON ¶
func (v BaseConfig) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BaseConfig) MarshalJSON ¶
func (v BaseConfig) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BaseConfig) UnmarshalEasyJSON ¶
func (v *BaseConfig) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BaseConfig) UnmarshalJSON ¶
func (v *BaseConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DI ¶
type DI struct {
// contains filtered or unexported fields
}
DI - managing dependencies
type ForceClose ¶
type ForceClose struct { C context.Context Close context.CancelFunc }
ForceClose model for force close application
Click to show internal directories.
Click to hide internal directories.