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 { CommonConf CommonConfig `toml:"common"` HTTPConf HTTPConfig `toml:"http"` DataConf DataConfig `toml:"data"` LDAPConf LDAPConfig `toml:"ldap"` WeworkConf WeworkConfig `toml:"wework"` DNSConf DNSConfig `toml:"dns"` 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
type LogConfig ¶
type LogConfig struct { NS string `toml:"ns"` Dir string `toml:"logdir"` Level string `toml:"loglevel"` Logrotatenum int `toml:"logrotatenum"` Logrotatesize uint64 `toml:"logrotatesize"` }
LogConfig is log config struct
type PluginConfig ¶
Click to show internal directories.
Click to hide internal directories.