handler

package
v0.0.0-...-84efe38 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableHandlers chan GeneralPacketHandler

Functions

This section is empty.

Types

type GeneralPacketHandler

type GeneralPacketHandler interface {
	HandleWithConnection(PacketHandlerFunc, pckt.Packet, net.Conn)
}

type PacketHandler

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

PacketHandler responsible for handling packets.

func (PacketHandler) HandleWithConnection

func (p PacketHandler) HandleWithConnection(f PacketHandlerFunc, pct pckt.Packet, c net.Conn)

type PacketHandlerFunc

type PacketHandlerFunc func(pct pckt.Packet, c net.Conn)

func GetFuncBasedOnPct

func GetFuncBasedOnPct(pct pckt.Packet) PacketHandlerFunc

Jump to

Keyboard shortcuts

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