types

package
v1.122.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingPongInfo

type PingPongInfo struct {
	Time    time.Time `json:"time"`
	Message string    `json:"message"`
}

type WSClient

type WSClient struct {
	Conn         *websocket.Conn `json:"-"`
	ConnectedAt  time.Time       `json:"connectedAt"`
	LastPingSent PingPongInfo    `json:"lastPingSent"`
	LastPongRecv PingPongInfo    `json:"lastPongRecv"`
	LastPingRecv PingPongInfo    `json:"lastPingRecv"`
	LastPongSent PingPongInfo    `json:"lastPongSent"`
}

Jump to

Keyboard shortcuts

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