Documentation ¶
Index ¶
- func NewService(config *config.ServerConfig, logger *logrus.Logger, ...) service.Service
- func ProvideServices(config *config.ServerConfig, logger *logrus.Logger, ...) *xdi.DiContainer
- func SetupApiRoute(router *gin.Engine, dic *xdi.DiContainer)
- func SetupBinding()
- func SetupCommonRoute(engine *gin.Engine)
- type GatewayService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func ProvideServices ¶
func ProvideServices(config *config.ServerConfig, logger *logrus.Logger, zkClient *zookeeper.ZkClient) *xdi.DiContainer
func SetupApiRoute ¶
func SetupApiRoute(router *gin.Engine, dic *xdi.DiContainer)
func SetupBinding ¶
func SetupBinding()
func SetupCommonRoute ¶
@Router /ping/ [GET] @Summary Ping @Tag Ping @ResponseEx 200 {"ping": "pong"}
Types ¶
type GatewayService ¶
type GatewayService struct { Server *gin.Engine Dic *xdi.DiContainer Config *config.ServerConfig ZkClient *zookeeper.ZkClient }
noinspection GoNameStartsWithPackageName
func (*GatewayService) Serve ¶
func (s *GatewayService) Serve()
Click to show internal directories.
Click to hide internal directories.