ping

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ping provides a simple API to ping Devices, mostly so that I can control its log level separately. And to a lesser degree to remove duplication of code, although it's not a primary concern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pinger

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

Pinger wraps the pinging of Devices.

func Create

func Create() (*Pinger, error)

Create creates a new Pinger.

Didn't see that coming, now, did you?

func (*Pinger) Ping

func (p *Pinger) Ping(d *model.Device) bool

func (*Pinger) PingAddr

func (p *Pinger) PingAddr(addr string) bool

Jump to

Keyboard shortcuts

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