checks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCheckIn = &CheckInChecker{}

Functions

func Register

func Register(t spec.CheckType, c Checker)

func Run

func Run(ctx context.Context, check spec.CheckSpec) spec.CheckResult

Types

type CheckInChecker

type CheckInChecker struct {
	// contains filtered or unexported fields
}

func (*CheckInChecker) Check

func (*CheckInChecker) RecordFailure

func (c *CheckInChecker) RecordFailure(checkName string)

func (*CheckInChecker) RecordPing

func (c *CheckInChecker) RecordPing(checkName string)

type Checker

type Checker interface {
	Check(ctx context.Context, check spec.CheckSpec) spec.CheckResult
}

func Get

func Get(t spec.CheckType) (Checker, error)

type DNSChecker

type DNSChecker struct{}

func (*DNSChecker) Check

func (d *DNSChecker) Check(ctx context.Context, check spec.CheckSpec) spec.CheckResult

type HTTPChecker

type HTTPChecker struct{}

func (*HTTPChecker) Check

func (h *HTTPChecker) Check(ctx context.Context, check spec.CheckSpec) spec.CheckResult

type TCPChecker

type TCPChecker struct{}

func (*TCPChecker) Check

func (t *TCPChecker) Check(ctx context.Context, check spec.CheckSpec) spec.CheckResult

type TLSChecker

type TLSChecker struct{}

func (*TLSChecker) Check

func (t *TLSChecker) Check(ctx context.Context, check spec.CheckSpec) spec.CheckResult

Jump to

Keyboard shortcuts

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