Documentation
¶
Overview ¶
@Title @Description @Author Wangwengang 2021/6/27 下午1:27 @Update Wangwengang 2021/6/27 下午1:27
@Title @Description @Author Wangwengang 2021/6/26 下午3:52 @Update Wangwengang 2021/6/26 下午3:52
@Title @Description @Author Wangwengang 2021/6/6 下午8:42 @Update Wangwengang 2021/6/6 下午8:42
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Casbin ¶
type Casbin struct {
ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"`
}
type Detail ¶
type JWT ¶
type JWT struct {
SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
ExpiresTime int64 `mapstructure:"expires-time" json:"expiresTime" yaml:"expires-time"`
BufferTime int64 `mapstructure:"buffer-time" json:"bufferTime" yaml:"buffer-time"`
White string `mapstructure:"white" json:"white" yaml:"white"`
}
type Jiguang ¶
type Jiguang struct {
PrivateKey string `mapstructure:"private-key" json:"privateKey" yaml:"private-key"`
AppKey string `mapstructure:"app-key" json:"appKey" yaml:"app-key"`
MasterSecret string `mapstructure:"master-secret" json:"masterSecret" yaml:"master-secret"`
AppKeyMasterSecret string `mapstructure:"app-key-master-secret" json:"appKeyMasterSecret" yaml:"app-key-master-secret"`
}
type Mongo ¶
type Mysql ¶
type Mysql struct {
Path string `mapstructure:"path" json:"path" yaml:"path"`
Config string `mapstructure:"config" json:"config" yaml:"config"`
Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
Username string `mapstructure:"username" json:"username" yaml:"username"`
Password string `mapstructure:"password" json:"password" yaml:"password"`
MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
LogZap string `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"`
}
type Nsq ¶
type Qiniu ¶
type Qiniu struct {
Zone string `mapstructure:"zone" json:"zone" yaml:"zone"`
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
ImgPath string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
UseHTTPS bool `mapstructure:"use-https" json:"useHttps" yaml:"use-https"`
AccessKey string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"`
SecretKey string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
UseCdnDomains bool `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"`
}
type Redis ¶
type Server ¶
type Server struct {
JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
Casbin Casbin `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
System System `mapstructure:"system" json:"system" yaml:"system"`
Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
// gorm
MysqlYinfu Mysql `mapstructure:"mysql-yinfu" json:"mysqlYinfu" yaml:"mysql-yinfu"`
// redis
Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
Jiguang Jiguang `mapstructure:"jiguang" json:"jiguang" yaml:"jiguang"`
TencentLive TencentLive `mapstructure:"tencent-live" json:"tencentLive" yaml:"tencent-live"`
TencentIM TencentIM `mapstructure:"tencent-im" json:"tencentIm" yaml:"tencent-im"`
// 七牛云
Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`
Nsq Nsq `mapstructure:"nsq" json:"nsq" yaml:"nsq"`
Mongo Mongo `mapstructure:"mongo" json:"mongo" yaml:"mongo"`
Timer Timer `mapstructure:"timer" json:"timer" yaml:"timer"`
}
type System ¶
type TencentIM ¶
type TencentIM struct {
SDKAppID int `mapstructure:"sdkapp-id" json:"sdkappId" yaml:"sdkapp-id"`
Key string `mapstructure:"key" json:"key" yaml:"key"`
Expire int `mapstructure:"expire" json:"expire" yaml:"expire"`
Identifier string `mapstructure:"identifier" json:"identifier" yaml:"identifier"`
GlobalGroupId int `mapstructure:"global-group-id" json:"global_group_id" yaml:"global-group-id"`
}
type TencentLive ¶
type Timer ¶
type Zap ¶
type Zap struct {
Level string `mapstructure:"level" json:"level" yaml:"level"`
Format string `mapstructure:"format" json:"format" yaml:"format"`
Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
Director string `mapstructure:"director" json:"director" yaml:"director"`
LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"`
ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"`
EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"`
StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"`
LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"`
}
Source Files
¶
- captcha.go
- casbin.go
- config.go
- gorm.go
- jiguang.go
- jwt.go
- mongo.go
- nsq.go
- oss.go
- redis.go
- system.go
- tencent_im.go
- tencentlive.go
- timer.go
- zap.go
Click to show internal directories.
Click to hide internal directories.