probe

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 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
}
var Blank Probe // nolint: gochecknoglobals

func New

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

func (*Probe) IncRetries

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

Jump to

Keyboard shortcuts

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