handler

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventConnected    string = "CONNECTED"
	EventIncomingData string = "DATA"
	EventClose        string = "CLOSE"
)

Variables

View Source
var (
	CLOSE      = []byte("CLOSE")      //nolint:gochecknoglobals
	CONTINUE   = []byte("CONTINUE")   //nolint:gochecknoglobals
	WRITECLOSE = []byte("WRITECLOSE") //nolint:gochecknoglobals
	WRITE      = []byte("WRITE")      //nolint:gochecknoglobals
)

immutable

Functions

func NewHandler

func NewHandler(conn net.Conn, delim []byte, serverName string, wPool func(*payload.Payload) (*payload.Payload, error),
	pldPool *sync.Pool, siPool *sync.Pool, readBufPool *sync.Pool, resBufPool *sync.Pool, connections *sync.Map, log *zap.Logger) *handler

Types

type ServerInfo

type ServerInfo struct {
	RemoteAddr string `json:"remote_addr"`
	Server     string `json:"server"`
	UUID       string `json:"uuid"`
	Event      string `json:"event"`
}

Jump to

Keyboard shortcuts

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