Discover Packages
github.com/iyear/hduhelp-interview
conf
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Oct 8, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppConf struct {
Port int `mapstructure:"port"`
Debug bool `mapstructure:"debug"`
Url string `mapstructure:"url"`
Limit float64 `mapstructure:"limit"`
Photo *Photo `mapstructure:"photo"`
Path *Path `mapstructure:"path"`
Auth *Auth `mapstructure:"auth"`
Mysql *Mysql `mapstructure:"mysql"`
}
type Auth struct {
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
RedirectUrl string `mapstructure:"redirect_url"`
}
type Mysql struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
Database string `mapstructure:"database"`
}
type Path struct {
Photo string `mapstructure:"photo"`
Temp string `mapstructure:"temp"`
}
type Photo struct {
Min int64 `mapstructure:"min"`
Max int64 `mapstructure:"max"`
MIME []string `mapstructure:"mime"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.