Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Confs = Config{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool // if true we run on debug mode Service Service `yaml:"service"` Postgres Database `yaml:"database"` }
type ConfigInterface ¶
type Service ¶
type Service struct { Name string `yaml:"service.name"` ID uint32 `yaml:"service.id"` BaseURL string `yaml:"service.baseURL"` HTTP struct { Host string `yaml:"http.host"` Port string `yaml:"http.port"` RequestTimeout uint `yaml:"http.requestTimeout"` AllowOrigin string `yaml:"http.allowOrigin"` } Token struct { Password string `yaml:"token.password"` Expiration uint `yaml:"token.expiration"` } }
Click to show internal directories.
Click to hide internal directories.