1234567891011121314151617181920212223242526272829303132333435363738 |
- package entity
- //msyql
- type MysqlMainStruct struct {
- DbName string `json:"dbName"`
- Address string `json:"address"`
- UserName string `json:"userName"`
- PassWord string `json:"passWord"`
- MaxOpenConns int `json:"maxOpenConns"`
- MaxIdleConns int `json:"maxIdleConns"`
- }
- //nsq消息队列
- type NsqStruct struct {
- Ip string `json:"ip"`
- Topic string `json:"topic"`
- }
- //redis
- type RedisStuct struct {
- Addr string `json:"addr"`
- Modules string `json:"modules"`
- }
- //es
- type EsStruct struct {
- Addr string `json:"addr"`
- Size int `json:"size"`
- }
- //oss 阿里云附件上传服务
- type OssStruct struct {
- OssEndpoint string `json:"ossEndpoint"`
- OssAccessKeyId string `json:"ossAccessKeyId"`
- OssAccessKeySecret string `json:"ossAccessKeySecret"`
- OssBucketName string `json:"ossBucketName"`
- OssUrl string `json:"ossUrl"`
- }
|