websocket

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProtocol

type DefaultProtocol struct{}

func (*DefaultProtocol) Decode

func (Protocol *DefaultProtocol) Decode(message []byte) (version byte, messageType int, protoType int, route []byte, body []byte)

func (*DefaultProtocol) Encode

func (Protocol *DefaultProtocol) Encode(route []byte, body []byte, messageType int, protoType int) []byte

func (*DefaultProtocol) Read

func (Protocol *DefaultProtocol) Read()

type Protocol

type Protocol interface {
	Decode(message []byte) (version byte, messageType int, protoType int, route []byte, body []byte)
	Encode(route []byte, body []byte, messageType int, protoType int) []byte
	Read()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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