hw

package
v0.0.0-...-5552437 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTP_PORT = "8000"

Functions

This section is empty.

Types

type Server

type Server struct {
	TotalRequests       prometheus.CounterVec
	RequestResponceTime prometheus.SummaryVec
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) CheckLiviness

func (s *Server) CheckLiviness(w http.ResponseWriter, _ *http.Request)

func (*Server) CheckReadiness

func (s *Server) CheckReadiness(w http.ResponseWriter, _ *http.Request)

func (*Server) EmulateActivity

func (s *Server) EmulateActivity()

Emulate activity where server can't be serving requests

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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