ping

package
v0.0.0-...-4e3218a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLatency

func CheckLatency(ps Settings)

CheckLatency sends out a ping every second to the server to determine the system latency. This Function is typically executed as a goroutine in client applications

func EchoPing

func EchoPing(ps Settings)

EchoPing receives a Ping Request and sends it back (Pong). This Function is typically executed as a goroutine on server applications

Types

type Settings

type Settings struct {
	ToWireCh  chan comms.IOMsg
	PongCh    chan []byte
	PingCh    chan []byte
	PingTopic string
	PongTopic string
	UserID    string
	WaitGroup *sync.WaitGroup
	Events    *pubsub.PubSub
}

Jump to

Keyboard shortcuts

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