Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ServiceAllowDirectHandle is the header key to allow direct handle. ServiceAllowDirectHandle = "service-allow-direct-handle" // ServiceRedirectorHeader is the header key to indicate the request is redirected. ServiceRedirectorHeader = "service-redirector" // ServiceContextKey is the key to get service server from gin.Context. ServiceContextKey = "service" )
Variables ¶
This section is empty.
Functions ¶
func ServiceRedirector ¶
func ServiceRedirector() gin.HandlerFunc
ServiceRedirector is a middleware to redirect the request to the right place.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.