Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupConfig ¶
SetupConfig reads the configuration from the specified file
Types ¶
type Config ¶
type Config struct { Log Log `mapstructure:"log"` Knock Knock `mapstructure:"knock"` Door Door `mapstructure:"door"` }
Config is the entrypoint for all configuration items
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig create a default configuration structure with the same values as the default configuration in config.yaml
type Door ¶
type Door struct { Type string `mapstructure:"type"` RouterOS *DoorRouterOS `mapstructure:"routeros"` }
Door is knockdoor door configuration
type DoorRouterOS ¶
type DoorRouterOS struct { Endpoint string `mapstructure:"endpoint"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` AddressListName string `mapstructure:"addressListName"` }
DoorRouterOS is knockdoor door configuration for RouterOS
type Knock ¶
type Knock struct { Mode string `mapstructure:"mode"` Static *[]uint16 `mapstructure:"static"` TOTP *KnockTOTP `mapstructure:"totp"` SkipLoopback bool `mapstructure:"skipLoopback"` }
Knock is knockdoor knock configuration
Click to show internal directories.
Click to hide internal directories.