server

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableRandomPorts

func EnableRandomPorts()

func HttpServer

func HttpServer(c *gin.Context) *http.Server

func NewEngine

func NewEngine() *gin.Engine

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

func ResolvePort(defaultBasePort, offset int) int

func Shutdown

func Shutdown(s *http.Server, services *registry.Registry, graceful bool)

func Values

func Values(c *gin.Context) registry.Values

Types

This section is empty.

Jump to

Keyboard shortcuts

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