probes

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block added in v0.4.0

type Block struct {
	Number    int64
	UpdatedAt time.Time
}

func (*Block) IsStale added in v0.4.0

func (b *Block) IsStale(thresholdSeconds float64, status string) error

type LivenessBlockProbe added in v0.3.0

type LivenessBlockProbe struct {
	LivenessProbe

	BlockThresholdSeconds float64
	// contains filtered or unexported fields
}

func (*LivenessBlockProbe) Probe added in v0.3.0

func (p *LivenessBlockProbe) Probe(conn *ws.Conn) (int, error)

func (*LivenessBlockProbe) UpdateBlock added in v0.4.0

func (p *LivenessBlockProbe) UpdateBlock(conn *ws.Conn) error

type LivenessProbe

type LivenessProbe struct{}

func (*LivenessProbe) Probe

func (p *LivenessProbe) Probe(conn *ws.Conn) (int, error)

type ProbeRequest

type ProbeRequest struct {
	Name    string
	Request []byte
}

type ReadinessProbe

type ReadinessProbe struct{}

func (*ReadinessProbe) Probe

func (p *ReadinessProbe) Probe(conn *ws.Conn) (int, error)

Jump to

Keyboard shortcuts

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