handler

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistProtocolMessageHandler

func RegistProtocolMessageHandler(protocolID string,
	receiveHandler func(data []byte, p *pipe.Pipe) ([]byte, error))

Types

type ProtocolMessageHandler

type ProtocolMessageHandler struct {
	ProtocolID     string
	ReceiveHandler func(data []byte, p *pipe.Pipe) ([]byte, error)
}

func GetProtocolMessageHandler

func GetProtocolMessageHandler(protocolID string) (*ProtocolMessageHandler, error)

Jump to

Keyboard shortcuts

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