Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
ParseConfig and return error if its not valid
Types ¶
type Configurations ¶
type Configurations struct { Learning bool CheckUser bool CheckSource bool LogLevel uint LogPath string DBType string DB uint `json:"-"` DBDir string ListenIP string ListenPort uint TargetIP string TargetPort uint TLSPrivateKey string TLSCertificate string HTTP bool HTTPSSL bool HTTPAddr string HTTPPassword string Action string ActionFunc func() error `json:"-"` Timeout time.Duration SyncInterval time.Duration }
Configurations structure to hold user configurations
var Config Configurations
Config holds current configs
Click to show internal directories.
Click to hide internal directories.