probe

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 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
	Port       int
	Goal       Goal
	Retries    int
	MaxRetries int
}
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