session

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MADFilter added in v1.2.0

func MADFilter(data stats.Float64Data) (stats.Float64Data, error)

Types

type Session

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

func NewSession

func NewSession(pingers []*probing.Pinger) *Session

NewSession creates a new session with the given number of pingers.

func (*Session) Run

func (s *Session) Run() error

func (*Session) Statistics

func (s *Session) Statistics() (*Statistics, error)

type StatWithSize added in v1.2.0

type StatWithSize struct {
	*probing.Statistics
	Bytes int
}

type Statistics added in v1.2.0

type Statistics struct {
	Pingers []*StatWithSize
	Bitrate float64
	Latency time.Duration
}

func NewStatistics added in v1.2.0

func NewStatistics(pingers []*probing.Pinger) (*Statistics, error)

func (*Statistics) String added in v1.2.0

func (s *Statistics) String() string

Jump to

Keyboard shortcuts

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