parser

package
v0.0.0-...-4ea3bf1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(packet Packet, writer *bufio.Writer) error

Types

type Packet

type Packet struct {
	Id          *int
	Type        PacketTypes
	Namespace   string
	Attachments string // ???
	Data        interface{}
}

type PacketTypes

type PacketTypes int
const (
	Connect PacketTypes = iota
	Disconnect
	Event
	Ack
	Error
	BinaryEvent
	BinaryAck
)

Jump to

Keyboard shortcuts

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