Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TLS struct { Active bool `yaml:"active"` Crt string `yaml:"crt"` Key string `yaml:"key"` } `yaml:"tls"` BasicAuth struct { Active bool `yaml:"active"` Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"basicAuth"` BearerAuth struct { Active bool `yaml:"active"` SigningKey string `yaml:"signingKey"` } `yaml:"bearerAuth"` Scripts []struct { Name string `yaml:"name"` Script string `yaml:"script"` } `yaml:"scripts"` }
Config represents the structur of the configuration file
func (*Config) LoadConfig ¶
LoadConfig reads the configuration file and umarshal the data into the config struct
Click to show internal directories.
Click to hide internal directories.