Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = new(config)
全局配置变量
Functions ¶
Types ¶
type DingTalkConfig ¶
type DingTalkConfig struct { AppKey string `mapstructure:"app-key" json:"appKey"` AppSecret string `mapstructure:"app-secret" json:"appSecret"` AgentId string `mapstructure:"agent-id" json:"agentId"` RootOuName string `mapstructure:"root-ou-name" json:"rootOuName"` Flag string `mapstructure:"flag" json:"flag"` EnableSync bool `mapstructure:"enable-sync" json:"enableSync"` DeptSyncTime string `mapstructure:"dept-sync-time" json:"deptSyncTime"` UserSyncTime string `mapstructure:"user-sync-time" json:"userSyncTime"` DeptList []string `mapstructure:"dept-list" json:"deptList"` IsUpdateSyncd bool `mapstructure:"is-update-syncd" json:"isUpdateSyncd"` ULeaveRange uint `mapstructure:"user-leave-range" json:"userLevelRange"` }
type EmailConfig ¶
type FeiShuConfig ¶
type FeiShuConfig struct { Flag string `mapstructure:"flag" json:"flag"` AppID string `mapstructure:"app-id" json:"appId"` AppSecret string `mapstructure:"app-secret" json:"appSecret"` EnableSync bool `mapstructure:"enable-sync" json:"enableSync"` DeptSyncTime string `mapstructure:"dept-sync-time" json:"deptSyncTime"` UserSyncTime string `mapstructure:"user-sync-time" json:"userSyncTime"` DeptList []string `mapstructure:"dept-list" json:"deptList"` IsUpdateSyncd bool `mapstructure:"is-update-syncd" json:"isUpdateSyncd"` }
type JenkinsConfig ¶
type LdapConfig ¶
type LdapConfig struct { Url string `mapstructure:"url" json:"url"` MaxConn int `mapstructure:"max-conn" json:"maxConn"` BaseDN string `mapstructure:"base-dn" json:"baseDN"` AdminDN string `mapstructure:"admin-dn" json:"adminDN"` AdminPass string `mapstructure:"admin-pass" json:"adminPass"` UserDN string `mapstructure:"user-dn" json:"userDN"` UserInitPassword string `mapstructure:"user-init-password" json:"userInitPassword"` GroupNameModify bool `mapstructure:"group-name-modify" json:"groupNameModify"` UserNameModify bool `mapstructure:"user-name-modify" json:"userNameModify"` DefaultEmailSuffix string `mapstructure:"default-email-suffix" json:"defaultEmailSuffix"` UserPasswordEncryptionType string `mapstructure:"user-password-encryption-type" json:"userPasswordEncryptionType"` }
type LogsConfig ¶
type LogsConfig struct { Level zapcore.Level `mapstructure:"level" json:"level"` Path string `mapstructure:"path" json:"path"` MaxSize int `mapstructure:"max-size" json:"maxSize"` MaxBackups int `mapstructure:"max-backups" json:"maxBackups"` MaxAge int `mapstructure:"max-age" json:"maxAge"` Compress bool `mapstructure:"compress" json:"compress"` }
type MysqlConfig ¶
type MysqlConfig struct { Username string `mapstructure:"username" json:"username"` Password string `mapstructure:"password" json:"password"` Database string `mapstructure:"database" json:"database"` Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` Query string `mapstructure:"query" json:"query"` LogMode bool `mapstructure:"log-mode" json:"logMode"` TablePrefix string `mapstructure:"table-prefix" json:"tablePrefix"` Charset string `mapstructure:"charset" json:"charset"` Collation string `mapstructure:"collation" json:"collation"` }
type RateLimitConfig ¶
type SystemConfig ¶
type SystemConfig struct { Mode string `mapstructure:"mode" json:"mode"` UrlPathPrefix string `mapstructure:"url-path-prefix" json:"urlPathPrefix"` Port int `mapstructure:"port" json:"port"` InitData bool `mapstructure:"init-data" json:"initData"` RSAPublicBytes []byte `mapstructure:"-" json:"-"` RSAPrivateBytes []byte `mapstructure:"-" json:"-"` }
type WeComConfig ¶
type WeComConfig struct { Flag string `mapstructure:"flag" json:"flag"` CorpID string `mapstructure:"corp-id" json:"corpId"` AgentID int `mapstructure:"agent-id" json:"agentId"` CorpSecret string `mapstructure:"corp-secret" json:"corpSecret"` EnableSync bool `mapstructure:"enable-sync" json:"enableSync"` DeptSyncTime string `mapstructure:"dept-sync-time" json:"deptSyncTime"` UserSyncTime string `mapstructure:"user-sync-time" json:"userSyncTime"` IsUpdateSyncd bool `mapstructure:"is-update-syncd" json:"isUpdateSyncd"` }
Click to show internal directories.
Click to hide internal directories.