Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_PAGESIZE = 10
)
Variables ¶
This section is empty.
Functions ¶
func GetGinMode ¶
func LoadConfiguration ¶
func LoadEnvConfiguration ¶
@title: 设置不同的环境变量 @auth: taotao
Types ¶
type Configuration ¶
type Configuration struct { SignupEnabled bool `yaml:"signup_enabled" json:"signup_enabled"` // signup enabled or not QiniuAccessKey string `yaml:"qiniu_accesskey" json:"qiniu_accesskey"` // qiniu QiniuSecretKey string `yaml:"qiniu_secretkey" json:"qiniu_secretkey"` QiniuFileServer string `yaml:"qiniu_fileserver" json:"qiniu_fileserver"` QiniuBucket string `yaml:"qiniu_bucket" json:"qiniu_bucket"` GithubClientId string `yaml:"github_clientid" json:"github_clientid"` // github GithubClientSecret string `yaml:"github_clientsecret" json:"github_clientsecret"` GithubAuthUrl string `yaml:"github_authurl" json:"github_authurl"` GithubRedirectURL string `yaml:"github_redirecturl" json:"github_redirecturl"` GithubTokenUrl string `yaml:"github_tokenurl" json:"github_tokenurl"` GithubScope string `yaml:"github_scope" json:"github_scope"` SmtpUsername string `yaml:"smtp_username" json:"smtp_username"` // username SmtpPassword string `yaml:"smtp_password" json:"smtp_password"` //password SmtpHost string `yaml:"smtp_host" json:"smtp_host"` //host SessionSecret string `yaml:"session_secret" json:"session_secret"` //session_secret Domain string `yaml:"domain" json:"domain"` //domain Public string `yaml:"public" json:"public"` //public Addr string `yaml:"addr" json:"addr"` //addr BackupKey string `yaml:"backup_key" json:"backup_key"` //backup_key DSN string `yaml:"dsn" json:"dsn"` //database dsn NotifyEmails string `yaml:"notify_emails" json:"notify_emails"` //notify_emails PageSize int `yaml:"page_size" json:"page_size"` //page_size SmmsFileServer string `yaml:"smms_fileserver" json:"smms_fileserver"` PasswordValid int64 `yaml:"password_valid" json:"password_valid"` AdminAddr string `json:"admin_addr" yaml:"admin_addr"` ClientAddr string `json:"client_addr" yaml:"client_addr"` AdminSecret string `json:"admin_secret" yaml:"admin_secret"` ClientSecret string `json:"client_secret" yaml:"client_secret"` AdminSessionKey string `json:"admin_session_key" yaml:"admin_session_key"` ClientSessionKey string `json:"client_session_key" yaml:"client_session_key"` AdminUser string `json:"admin_user" yaml:"admin_user"` ClientUser string `json:"client_user" yaml:"client_user"` GinCaptcha string `json:"gin_captcha" yaml:"gin_captcha"` SessionGithubState string `json:"session_github_state" yaml:"session_github_state"` }
func GetConfiguration ¶
func GetConfiguration() *Configuration
Click to show internal directories.
Click to hide internal directories.