mock

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MPL-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notify

type Notify struct {

	// A guard to protect an access to the internal attributes
	// of the notification mock in order to prevent panics
	// raised by the race conditions detector.
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewNotify

func NewNotify() *Notify

func NewNotifyChan added in v0.9.0

func NewNotifyChan() (*Notify, chan int)

func (*Notify) Output

func (m *Notify) Output(id types.CheckID) string

Output returns an output string of the specified health-check.

func (*Notify) OutputMap

func (m *Notify) OutputMap() string

func (*Notify) State

func (m *Notify) State(id types.CheckID) string

State returns the state of the specified health-check.

func (*Notify) StateMap

func (m *Notify) StateMap() string

func (*Notify) UpdateCheck

func (m *Notify) UpdateCheck(id types.CheckID, status, output string)

func (*Notify) Updates

func (m *Notify) Updates(id types.CheckID) int

Updates returns the count of updates of the specified health-check.

func (*Notify) UpdatesMap

func (m *Notify) UpdatesMap() string

Jump to

Keyboard shortcuts

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