gateway

package
v0.0.0-...-92ef796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(config *config.ServerConfig, logger *logrus.Logger, zkClient *zookeeper.ZkClient) service.Service

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

func SetupCommonRoute(engine *gin.Engine)

@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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL