probe

package
v0.0.0-...-6f51d7c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NC = time.Time{} // no constraint

Functions

This section is empty.

Types

type Goal

type Goal int
const (
	GoalDetails Goal = iota
	GoalPort
)

func (Goal) String

func (goal Goal) String() string

type Probe

type Probe struct {
	Addr       addr.Addr `json:"addr"`
	Port       int       `json:"port"`
	Goal       Goal      `json:"goal"`
	Retries    int       `json:"retries"`
	MaxRetries int       `json:"max_retries"`
}
var Blank Probe // nolint: gochecknoglobals

func New

func New(addr addr.Addr, port int, goal Goal, maxRetries int) Probe

func (*Probe) IncRetries

func (t *Probe) IncRetries() (int, bool)

Jump to

Keyboard shortcuts

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