Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var C = new(Config)
C is a global config instance.
Functions ¶
func LoadWithPathAndName ¶
LoadWithPathAndName loads config from path and name.
Types ¶
type Config ¶
type Config struct { ID string `json:"id" yaml:"id"` Name string `json:"name" yaml:"name"` Log logging.Config `json:"log" yaml:"log"` HTTP HTTP `json:"http" yaml:"http"` LineBot struct { Secret string `json:"secret" yaml:"secret"` Token string `json:"token" yaml:"token"` } `json:"line_bot" yaml:"lineBot"` Storage struct { Influxdb struct { URL string `json:"url" yaml:"url"` Token string `json:"token" yaml:"token"` } `json:"influxdb" yaml:"influxdb"` } `json:"storage" yaml:"storage"` IRent struct { HTTP HTTP `json:"http" yaml:"http"` Version string `json:"version" yaml:"version"` } `json:"irent" yaml:"irent"` }
Config defines the config struct.
Click to show internal directories.
Click to hide internal directories.