health

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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