ntp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRequests

func GenerateRequests(servers []string, rpm int, rampPeriod time.Duration) chan NTPResponse

GenerateRequests generates NTP requests to the given servers at the given Requests Per Minute (RPM) building up from 0 rpm to the given rpm over the given ramp period in seconds and returns a channel of `NTPResponse`s.

func Ping

func Ping(server string, count int, out chan NTPResponse)

Ping sends `count` number of NTP requests to the given server, sending the response to the given `out` channel.

Types

type NTPResponse

type NTPResponse struct {
	*ntp.Response
	Server string
	Err    error
}

Jump to

Keyboard shortcuts

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