Documentation ¶
Index ¶
- func EnableRandomPorts()
- func HttpServer(c *gin.Context) *http.Server
- func NewEngine() *gin.Engine
- func RegisterHttpService(services *registry.Registry, r *gin.Engine, defaultPort, offset int) registry.ServiceTag
- func ResolvePort(defaultBasePort, offset int) int
- func Shutdown(s *http.Server, services *registry.Registry, graceful bool)
- func Values(c *gin.Context) registry.Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableRandomPorts ¶
func EnableRandomPorts()
func RegisterHttpService ¶
func RegisterHttpService(services *registry.Registry, r *gin.Engine, defaultPort, offset int) registry.ServiceTag
RegisterHttpService configures an HTTP server in the service registry using the given routing engine.
It will listen on `defaultPort` normally, unless overridden by the PORT environment variable.
func ResolvePort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.