Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GAkisitorConfig ¶
type GAkisitorConfig struct { System SystemDefinition `json:"system"` Modules []ModuleDefinition `json:"modules"` Log []LogDefinition `json:"log"` // contains filtered or unexported fields }
GAkisitorConfig is the configuration that comes from loading the configuration File
func (*GAkisitorConfig) FilePtr ¶
func (p *GAkisitorConfig) FilePtr() *string
FilePtr return a pointer of the configuration file path
func (*GAkisitorConfig) IsLoaded ¶
func (p *GAkisitorConfig) IsLoaded() bool
IsLoaded return the current loading state
func (*GAkisitorConfig) Load ¶
func (p *GAkisitorConfig) Load() error
Load performs the loading file and unmarshal it into itself
func (*GAkisitorConfig) WaitReconfiguration ¶
func (p *GAkisitorConfig) WaitReconfiguration(d time.Duration) error
WaitReconfiguration wait until the configuration file was modified. Next, this function reload the file
type LogDefinition ¶
type LogDefinition struct { File string `json:"File"` Format string `json:"format"` Encoding string `json:"encoding"` Level string `json:"level"` Raw RawConfig }
LogDefinition define log information, used during logger instantiation
type ModuleDefinition ¶
type ModuleDefinition struct { Name string `json:"name"` Path string `json:"path"` Config RawConfig `json:"config"` }
ModuleDefinition define module information like name or internal configuration
Click to show internal directories.
Click to hide internal directories.