monitor

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

func New

func New(downThreshold, upThreshold int) (*Monitor, error)

func (*Monitor) RegisterStatus

func (m *Monitor) RegisterStatus(sequence uint64, status Status)

func (*Monitor) Sequence

func (m *Monitor) Sequence() uint64

func (*Monitor) Status

func (m *Monitor) Status() Status

type Status

type Status int8
const (
	Down    Status = -1
	Pending Status = 0
	Up      Status = 1
)

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