Documentation ¶
Index ¶
Constants ¶
View Source
const ( //APP NAME AppName = "Registry" //Usage Usage = "Registry Usage" //Vresion Num Version = "0.0.1" //Author Nmae Author = "LoadStack Developer Group" //Email Address Email = "oiooj@qq.com" )
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
Types ¶
type CommonConfig ¶
type Config ¶
type Config struct { Admins []string `toml:"admins"` RouterAddr string `toml:"routeraddr"` CommonConf CommonConfig `toml:"common"` HTTPConf HTTPConfig `toml:"http"` DataConf DataConfig `toml:"data"` LDAPConf LDAPConfig `toml:"ldap"` LogConf LogConfig `toml:"log"` PluginConf PluginConfig `toml:"plugin"` EventConf EventConfig `toml:"event"` }
var ( // global config C Config )
type DataConfig ¶
type EventConfig ¶
type EventConfig struct {
ClearURL string `toml:"clearURL"`
}
type HTTPConfig ¶
type LDAPConfig ¶
type LDAPConfig struct { Enable bool `toml:"enable"` Server string `toml:"server"` UID string `toml:"uid"` Binddn string `toml:"binddn"` Password string `toml:"password"` Base string `toml:"base"` }
LDAPConfig is LDAP config struct
Click to show internal directories.
Click to hide internal directories.