Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterrupted = errors.New("interrupted")
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult string
const ( CheckResultPending CheckResult = "Pending" CheckResultPassing CheckResult = "Passing" CheckResultFailing CheckResult = "Failing" )
type CheckSummary ¶
type CheckSummary struct {
Description string
Result CheckResult
Details string
Timestamp time.Time
}
type Checker ¶
type Checker interface {
Description() string
Check(interruptCh <-chan struct{}) (*CheckSummary, error)
Period() time.Duration
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(opts ...RunnerOption) *Runner
func (*Runner) AddSection ¶
func (*Runner) Results ¶
func (runner *Runner) Results() []*SectionSummary
type RunnerOption ¶
type RunnerOption func(*Runner)
func SetStatusChannel ¶
func SetStatusChannel(statusCh chan<- CheckSummary) RunnerOption
type SectionSummary ¶
type SectionSummary struct {
Heading string
Checks []*CheckSummary
}
Click to show internal directories.
Click to hide internal directories.