config.go 346 B

12345678910111213141516171819202122
  1. package config
  2. import "github.com/tal-tech/go-zero/zrpc"
  3. type Config struct {
  4. zrpc.RpcServerConf
  5. JyDocsMysqlDB MysqlDBConfig
  6. EsConfig EsConfig
  7. }
  8. type MysqlDBConfig struct {
  9. DriverName string
  10. DataSourceName string
  11. MaxOpenConn int
  12. MaxIdleConn int
  13. MaxConnLifeTime int
  14. }
  15. type EsConfig struct {
  16. Addr string
  17. Pool int
  18. }