Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = new(Config)
全局配置变量
Functions ¶
This section is empty.
Types ¶
type AppConf ¶
type AppConf struct { Name string `ini:"Name"` HttpPort int `ini:"HttpPort"` AppUrl string `ini:"AppUrl"` BetaUrl string `ini:"BetaUrl"` RunMode string `ini:"RunMode"` RsaPrivateKey string `ini:"RsaPrivateKey"` RsaPublicKey string `ini:"RsaPublicKey"` TokenLifeTime int64 `ini:"TokenLifeTime"` AppKey string `ini:"AppKey"` }
type Auth ¶
type Auth struct { Oauth2 Oauth2Conf `ini:"Oauth2"` Ldap LdapConf `ini:"Ldap"` }
type Config ¶
type LdapConf ¶
type LdapConf struct { Enabled bool `ini:"Enabled"` Url string `ini:"Url"` BaseDN string `ini:"BaseDN"` BindDN string `ini:"BindDN"` Password string `ini:"Password"` UseSSL bool `ini:"UseSSL"` SkipTLS bool `ini:"SkipTLS"` TLSConfig *tls.Config `ini:"TLSConfig"` CertFile string `ini:"CertFile"` KeyFile string `ini:"KeyFile"` CAFile string `ini:"CAFile"` Filter string `ini:"Filter"` Uid string `ini:"Uid"` Scope string `ini:"Scope"` }
type Oauth2Conf ¶
type Oauth2Conf struct { Enabled bool `ini:"Enabled"` ClientId string `ini:"ClientId"` ClientSecret string `ini:"ClientSecret"` RedirectURL string `ini:"RedirectURL"` AuthURL string `ini:"AuthURL"` TokenURL string `ini:"TokenURL"` ApiURL string `ini:"ApiURL"` Scopes string `ini:"Scopes"` ApiMapping string `ini:"ApiMapping"` }
Click to show internal directories.
Click to hide internal directories.