checker

package
v0.0.0-...-f3f1ec7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasCheck

func HasCheck(key string) bool

HasCheck returns true if there is a check factory registered for this key.

func Register

func Register(key string, impl Interface) error

Register registers one implementation of check provider.

Types

type Interface

type Interface interface {
	Check(data []byte, lastRun time.Time) error
}

Interface defines the interface for a check.

func GetCheck

func GetCheck(key string) (Interface, error)

GetCheck returns a check instance for the specified key.

Directories

Path Synopsis
apps
fleet

Jump to

Keyboard shortcuts

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