Documentation ¶
Overview ¶
Package cmd contains CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Port int `yaml:"port"` KeyLength int `yaml:"key_length"` CertificateLifeDays int `yaml:"cert_life_days"` LogLevel string `yaml:"log_level"` }
Config is used to hold application configuration values.
func LoadConfig ¶
LoadConfig reads the given YAML file and loads config from it
func (*Config) GetCertificateDuration ¶
GetCertificateDuration returns the cert lifetime duration.
Click to show internal directories.
Click to hide internal directories.