Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigTpl ¶
type ConfigTpl struct { GlobalCtx context.Context SrvAddr string `json:"addr" yaml:"addr"` TLS TlsConfig `json:"tls" yaml:"tls"` Logger Logger `json:"logger" yaml:"logger"` UrbsSetting UrbsSetting `json:"urbs_setting" yaml:"urbs_setting"` Thrid Thrid `json:"thrid" yaml:"thrid"` // 三方接口 CorsWhiteList []string `json:"cors_white_list" yaml:"cors_white_list"` MySQL SQL `json:"mysql" yaml:"mysql"` SuperAdmins []string `json:"superAdmins" yaml:"superAdmins"` HIDKey string `json:"hid_key" yaml:"hid_key"` AuthKeys []string `json:"auth_keys" yaml:"auth_keys"` OpenTrust OpenTrust `json:"open_trust" yaml:"open_trust"` }
ConfigTpl ...
var Config ConfigTpl
Config ...
type HookService ¶ added in v0.5.0
type HookService struct { URL string `json:"url" yaml:"url"` Events []string `json:"events" yaml:"events"` }
HookService ...
type OpenTrust ¶ added in v0.11.0
type OpenTrust struct { OTID string `json:"otid" yaml:"otid"` LegacyOTID string `json:"legacy_otid" yaml:"legacy_otid"` PrivateKeys []string `json:"private_keys" yaml:"private_keys"` DomainPublicKeys []string `json:"domain_public_keys" yaml:"domain_public_keys"` }
OpenTrust ...
type SQL ¶ added in v0.3.0
type SQL struct { Host string `json:"host" yaml:"host"` User string `json:"user" yaml:"user"` Password string `json:"password" yaml:"password"` Database string `json:"database" yaml:"database"` Parameters string `json:"parameters" yaml:"parameters"` MaxIdleConns int `json:"max_idle_conns" yaml:"max_idle_conns"` MaxOpenConns int `json:"max_open_conns" yaml:"max_open_conns"` }
SQL ...
type Thrid ¶ added in v0.2.0
type Thrid struct { OTID string `json:"otid" yaml:"otid"` OTVIDs []string `json:"otvids" yaml:"otvids"` // 验证调用者身份接口 UserAuth UserAuth `json:"user_auth" yaml:"user_auth"` // 群组成员接口 GroupMember ThridService `json:"group_member" yaml:"group_member"` // 变更通知 Hook HookService `json:"hook" yaml:"hook"` }
Thrid ...
type ThridService ¶ added in v0.5.0
type ThridService struct {
URL string `json:"url" yaml:"url"`
}
ThridService ...
type TlsConfig ¶ added in v0.2.0
type TlsConfig struct { CertPath string `json:"cert_path" yaml:"cert_path"` KeyPath string `json:"key_path" yaml:"key_path"` }
TlsConfig the config struct for creating tls.Config.
type UrbsSetting ¶ added in v0.2.0
type UrbsSetting struct { Addr string `json:"addr" yaml:"addr"` OTID string `json:"otid" yaml:"otid"` OTVIDs []string `json:"otvids" yaml:"otvids"` }
UrbsSetting ...
Click to show internal directories.
Click to hide internal directories.