check

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	StatusNote    = "⬜️️"
	StatusSuccess = "✅"
	StatusFailure = "❌"
)

Variables

This section is empty.

Functions

func DefaultCheck

func DefaultCheck(ctx context.Context, l log.Logger, checkers []Checker) error

Types

type Check

type Check func(ctx context.Context, l log.Logger, checkers []Checker) error

type Checker

type Checker func(ctx context.Context, l log.Logger) Info

type Checkers added in v0.5.4

type Checkers []Checker

type Info

type Info struct {
	Name   string
	Note   string
	Status Status
}

func NewFailureInfo added in v0.3.0

func NewFailureInfo(name, note string) Info

func NewNoteInfo added in v0.5.1

func NewNoteInfo(name, note string) Info

func NewSuccessInfo added in v0.3.0

func NewSuccessInfo(name, note string) Info

type Status

type Status string

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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