Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶
type Conf struct { Host string `yaml:"host"` Port int `yaml:"port"` Debug bool `yaml:"debug"` DB string `yaml:"db"` Token string `yaml:"token"` }
Conf is a struct used to configure the program
var C *Conf
C is the main exported configuration struct
func NewDefaults ¶
func NewDefaults() *Conf
NewDefaults creates a new Conf struct with default values already filled
func (Conf) ListenAddress ¶
ListenAddress returns the listen address of the server
Click to show internal directories.
Click to hide internal directories.