server

package
v0.0.0-...-15c5a81 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleOptionsRequest

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

---- HandleOptionsRequest ----

func NewMetricRouter

func NewMetricRouter(config configuration.Configuration, router *mux.Router, db *db.TestDataCache, metricService root.MetricService) *mux.Router

---- NewMetricRouter ----

func SetResponseHeaders

func SetResponseHeaders(w http.ResponseWriter) http.ResponseWriter

---- SerResponseHeaders ----

func VerifyToken

func VerifyToken(next http.HandlerFunc, config configuration.Configuration) http.HandlerFunc

---- VerifyToken ----

Types

type Server

type Server struct {
	Router        *mux.Router
	Config        configuration.Configuration
	Db            *db.TestDataCache
	MetricService root.MetricService
}

---- Server struct for the MicroService ----

func NewServer

func NewServer(config configuration.Configuration, db *db.TestDataCache, metricService root.MetricService) *Server

---- NewServer ----

func (*Server) InitTestData

func (rcvr *Server) InitTestData()

---- InitTestData ----

func (*Server) Start

func (rcvr *Server) Start()

---- Start ----

Jump to

Keyboard shortcuts

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