healthcheck

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPServer

type TCPServer struct {
	// contains filtered or unexported fields
}

TCPServer answers healthcheck requests from TCP routers, such as an ELB.

func NewTCPServer

func NewTCPServer(logger logrus.FieldLogger, provider hmetrics.Provider, addr string) *TCPServer

NewTCPServer initializes a new health-check server.

func (*TCPServer) Run

func (s *TCPServer) Run() error

Run listens on the configured address and responds to healthcheck requests from TCP routers, such as an ELB.

func (*TCPServer) Stop

func (s *TCPServer) Stop(error)

Stop shuts down the TCPServer if it was already started.

Stop implements the kit.Server interface.

Jump to

Keyboard shortcuts

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