healthcheck

package
v0.0.0-...-4d64e5c Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleHealthCheck

func HandleHealthCheck(h *Healthcheck) workerpool.JobHandler

Types

type Config

type Config struct {
	Enable             bool `json:"enable"`
	MaxRequests        int  `json:"max_requests"`
	MaxPendingRequests int  `json:"max_pending_requests"`
	UpdateInterval     int  `json:"update_interval"`
	CheckInterval      int  `json:"check_interval"`
}

type Healthcheck

type Healthcheck struct {
	Enable bool
	// contains filtered or unexported fields
}

func NewHealthcheck

func NewHealthcheck(config *Config, redisData *storage.DataHandler, redisStat *storage.StatHandler, requestLogger *zap.Logger) *Healthcheck

func (*Healthcheck) FilterHealthcheck

func (h *Healthcheck) FilterHealthcheck(qname string, rrset *types.IP_RRSet, mask []int) []int

func (*Healthcheck) ShutDown

func (h *Healthcheck) ShutDown()

func (*Healthcheck) Start

func (h *Healthcheck) Start()

func (*Healthcheck) Transfer

func (h *Healthcheck) Transfer()

Jump to

Keyboard shortcuts

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