checker

package
v0.0.0-...-a426a1e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Stop()
}

Checker is a generic execution that can be stopped at any time.

type CheckerMap

type CheckerMap map[string]Checker

CheckerMap is a map of Checkers.

func NewCheckerMap

func NewCheckerMap() CheckerMap

NewCheckerMap creates new checker map.

func (CheckerMap) Add

func (cm CheckerMap) Add(key string, c Checker)

Add adds checker to the checker map.

func (CheckerMap) DeleteAndStop

func (cm CheckerMap) DeleteAndStop(key string) bool

DeleteAndStop stops checker and deletes it if exists.

func (CheckerMap) Dispose

func (cm CheckerMap) Dispose()

Dispose stops all checkers and cleans up the map.

Jump to

Keyboard shortcuts

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