checker

package
v0.0.0-...-f7988c7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 0 Imported by: 3

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 Map

type Map map[string]Checker

Map is a map of Checkers.

func NewMap

func NewMap() Map

NewMap creates new checker map.

func (Map) Add

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

Add adds checker to the checker map.

func (Map) DeleteAndStop

func (cm Map) DeleteAndStop(key string) bool

DeleteAndStop stops checker and deletes it if exists.

func (Map) Dispose

func (cm Map) 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