config.go 441 B

1234567891011121314151617181920212223242526272829
  1. package config
  2. import (
  3. "jyBXSubscribe/entity"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. AppId int64
  10. Webrpcport int64
  11. Gateway struct {
  12. ServerCode string
  13. Etcd []string
  14. }
  15. Subscribe zrpc.RpcClientConf
  16. MgoLogsName string
  17. MgoLogsCount int
  18. }
  19. type Db struct {
  20. Mongo entity.Mongo `json:"mongo"`
  21. }
  22. type Routes struct {
  23. ExcludeRoute []string
  24. }