Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(ctx *cli.Context) error
initConfig initializes the app configuration by first setting defaults, then overriding settings from the app config file, then overriding It returns an error if any.
Types ¶
type Config ¶
type Config struct { Log Log Pyroscope Pyroscope SessionStore string `json:"session_store"` CacheStore string `json:"cache_store"` // 应用配置 App app Server server Auth auth Broker broker Sessions sessions // MySQL、PostgreSQL DB database `json:"database"` // Redis Redis redis // Opentracing Opentracing opentracing // contains filtered or unexported fields }
var (
Conf Config // holds the global app config.
)
Click to show internal directories.
Click to hide internal directories.