server

package
v0.0.0-...-324554c Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckHandler

func HealthCheckHandler(w http.ResponseWriter, r *http.Request)

HealthCheckHandler is used for pings to check health of server

func Server

func Server(data *Data) error

Server is the function that starts the listening server

Types

type Data

type Data struct {
	Router        *mux.Router
	IP            string
	Port          string
	HTTPS         bool
	ConnectionMap map[string]int
	Count         int
}

Data is the current state of the server

Jump to

Keyboard shortcuts

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