keepalive

package
v0.0.0-...-3d82958 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ping   = "Ping"
	Pong   = "Pong"
	GoAway = "Go Away"
)

Keepalive messages

Variables

This section is empty.

Functions

func ConsummateKeepaliveParams

func ConsummateKeepaliveParams(kp *keepalive.ServerParameters)

ConsummateKeepaliveParams consummates and checks keepalive parameters

func KeepaliveMiddleware

func KeepaliveMiddleware(kgetter func(ch *channel.Channel) *Keeper) less.Middleware

KeepaliveMiddleware returns a middleware to intercept and handle keepalive messages

Types

type Keeper

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

func NewKeeper

func NewKeeper(kp *keepalive.ServerParameters, state state.Stater) *Keeper

func (*Keeper) Close

func (k *Keeper) Close()

func (*Keeper) Keepalive

func (k *Keeper) Keepalive()

Jump to

Keyboard shortcuts

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