Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v2.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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

This section is empty.

Types

type Handler

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

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

func (*Handler) Release

func (h *Handler) Release()

func (*Handler) Start

func (h *Handler) Start()

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