config.go 391 B

123456789101112131415161718192021
  1. package config
  2. import (
  3. "github.com/zeromicro/go-queue/rabbitmq"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. JwtAuth struct {
  10. AccessSecret string
  11. AccessExpire int64
  12. }
  13. KqPusherConf struct {
  14. Brokers []string
  15. Topic string
  16. }
  17. RabbitSenderConf rabbitmq.RabbitSenderConf
  18. UserCenterRpcConf zrpc.RpcClientConf
  19. }