parser

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Delimiter = "||"
)

Variables

View Source
var ErrNoEventName = errors.New("parser: no event name or request id")

Functions

func DecodeEvent

func DecodeEvent(data []byte) (string, uint64, []byte, error)

func EncodeEvent

func EncodeEvent(event string, reqId uint64, body []byte) []byte

func EncodeEventToBuffer

func EncodeEventToBuffer(buf *bytes.Buffer, event string, reqId uint64, body []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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