MCPcopy Index your code
hub / github.com/djherbis/socket / PacketHandler

Interface PacketHandler

handler.go:6–8  ·  view source on GitHub ↗

PacketHandler responds to a Packet

Source from the content-addressed store, hash-verified

4
5// PacketHandler responds to a Packet
6type PacketHandler interface {
7 OnPacket(Packet)
8}
9
10// EventHandler registers a function to be run when an event is received.
11// The arguments to the function will be unmarshalled from the

Callers 3

ServeHTTPMethod · 0.65
OnPacketMethod · 0.65
NewFunction · 0.65

Implementers 2

handlerhandler.go
callercaller.go

Calls

no outgoing calls

Tested by

no test coverage detected