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"` Storage struct { Mongodb struct { DSN string `json:"dsn" yaml:"dsn"` } `json:"mongodb" yaml:"mongodb"` } `json:"storage" yaml:"storage"` LineBot struct { Secret string `json:"secret" yaml:"secret"` Token string `json:"token" yaml:"token"` } `json:"line_bot" yaml:"lineBot"` Auth0 struct { Domain string `json:"domain" yaml:"domain"` ClientID string `json:"client_id" yaml:"clientID"` ClientSecret string `json:"client_secret" yaml:"clientSecret"` CallbackURL string `json:"callback_url" yaml:"callbackURL"` } `json:"auth0" yaml:"auth0"` }
Config defines the config struct.
Click to show internal directories.
Click to hide internal directories.