staggercast

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	PacketConn
	Stagger(ticker <-chan struct{}, cancel context.CancelFunc)
	Stats() Stats
}

func New

func New(conns []PacketConn) Conn

type PacketConn

type PacketConn interface {
	io.Reader
	io.Writer
	RemoteAddr() net.Addr
	net.PacketConn
}

PacketConn implements both net.Conn and net.PacketConn

type Stats

type Stats struct {
	FastestRemoteIndex int
	FastestRemote      net.Addr
}

Jump to

Keyboard shortcuts

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