Documentation ¶
Index ¶
Constants ¶
View Source
const ( MICRO_SERVICE_NAME = "micro-service-name" MICRO_SERVICE_PATH = "micro-service-path" MICRO_SERVICE_SCHEMA = "micro-service-schema" CONTENT_TYPE = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func LogHandler ¶
func LogHandler(next fasthttp.RequestHandler) fasthttp.RequestHandler
func RecoverHandler ¶
func RecoverHandler(next fasthttp.RequestHandler) fasthttp.RequestHandler
Types ¶
type GatewayServer ¶
type GatewayServer struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func NewGateway() *GatewayServer
func (*GatewayServer) AddInterceptor ¶
func (s *GatewayServer) AddInterceptor(i int32, n func(next fasthttp.RequestHandler) fasthttp.RequestHandler) *GatewayServer
func (*GatewayServer) AddRpcEndpoint ¶
func (s *GatewayServer) AddRpcEndpoint(d Doer) *GatewayServer
func (*GatewayServer) Init ¶
func (s *GatewayServer) Init()
func (*GatewayServer) Run ¶
func (s *GatewayServer) Run()
func (*GatewayServer) Stop ¶
func (s *GatewayServer) Stop()
Click to show internal directories.
Click to hide internal directories.