handler

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: AGPL-3.0 Imports: 2 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, remotePeerId string, clientId string, connectSessionId string, remoteAddr string) ([]byte, error))

Types

type ProtocolMessageHandler

type ProtocolMessageHandler struct {
	ProtocolID     string
	MessageHandler func(data []byte, remotePeerId string, clientId string, connectSessionId string, remoteAddr string) ([]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