db.go 887 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package entity
  2. //msyql
  3. type MysqlMainStruct struct {
  4. DbName string `json:"dbName"`
  5. Address string `json:"address"`
  6. UserName string `json:"userName"`
  7. PassWord string `json:"passWord"`
  8. MaxOpenConns int `json:"maxOpenConns"`
  9. MaxIdleConns int `json:"maxIdleConns"`
  10. }
  11. //nsq消息队列
  12. type NsqStruct struct {
  13. Ip string `json:"ip"`
  14. Topic string `json:"topic"`
  15. }
  16. //redis
  17. type RedisStuct struct {
  18. Addr string `json:"addr"`
  19. Modules string `json:"modules"`
  20. }
  21. //es
  22. type EsStruct struct {
  23. Addr string `json:"addr"`
  24. Size int `json:"size"`
  25. }
  26. //oss 阿里云附件上传服务
  27. type OssStruct struct {
  28. OssEndpoint string `json:"ossEndpoint"`
  29. OssAccessKeyId string `json:"ossAccessKeyId"`
  30. OssAccessKeySecret string `json:"ossAccessKeySecret"`
  31. OssBucketName string `json:"ossBucketName"`
  32. OssUrl string `json:"ossUrl"`
  33. }