checker

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForDockerEvents

func CheckForDockerEvents(stopCh <-chan struct{})

CheckForDockerEvents check for docker container events and react to certain events

Types

type Checker

type Checker struct {
}

Checker checker struct

func New

func New() *Checker

New return a new Checker

func (*Checker) Run

func (c *Checker) Run(stopCh <-chan struct{}) error

Run run checker logic

type Result

type Result struct {
	Check  config.Check
	Server *config.Config
	Return bool
}

Result server check result

type ResultCounter

type ResultCounter struct {
	Count     int64
	FirstTime time.Time
	LastTime  time.Time
}

ResultCounter result counter to count the results success or failure

type ResultServerList

type ResultServerList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ResultServerList result counter per server list

func NewResultServerList

func NewResultServerList() *ResultServerList

NewResultServerList return new result counter server lit

func (*ResultServerList) Add

func (r *ResultServerList) Add(result Result)

Add add a new result to the result counter server list

Jump to

Keyboard shortcuts

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