checker

package
v0.0.0-...-fd2512f Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 9 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 {
	Start() error
	Check() ([]Success, []Error)
}

Checker check if data is correct depending on implementation

func Get

func Get(checker Model, prometheus metrics.Prometheus) (Checker, error)

Get return a checker if the Model is an implementation of Checker

type Error

type Error interface {
	Details() map[string]interface{}
}

Error is the interface fo details error depending on implementation

type Model

type Model struct {
	Type   Type            `json:"type"`
	Config json.RawMessage `json:"config"`
}

Model is the structure loaded from json file

type Success

type Success interface {
	Details() map[string]interface{}
}

Success is the interface fo details success depending on implementation

type Type

type Type string

Type is a type to define a checker

Jump to

Keyboard shortcuts

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