Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Name string ` yaml:"name" env:"APP_NAME"`
Version string ` yaml:"version" env:"APP_VERSION"`
}
App -.
type Config ¶
type Config struct {
App `yaml:"server-cmd"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
PG `yaml:"postgres"`
JWT `yaml:"jwt"`
WeChat `yaml:"we-chat"`
File `yaml:"file"`
}
Config -.
type JWT ¶
type JWT struct {
Secret string `yaml:"secret" env:"JWT_SECRET"`
Expire int `yaml:"expire" env:"JWT_EXPIRE"`
}
JWT -.
Click to show internal directories.
Click to hide internal directories.