health

package
v0.0.0-...-e7b131c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnhealthy = errors.New("unhealthy")

Functions

func IsClientMode

func IsClientMode(args []string) bool

func IsHealthy

func IsHealthy() (err error)

IsHealthy checks the localhost DNS UDP server is working by resolving github.com.

Types

type Client

type Client interface {
	Query(ctx context.Context) error
}

func NewClient

func NewClient() Client

type Server

type Server interface {
	Run(ctx context.Context, wg *sync.WaitGroup)
}

func NewServer

func NewServer(address string, logger logging.Logger, healthcheck func() error) Server

Jump to

Keyboard shortcuts

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