util

package
v0.0.0-...-e215c4f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMessage

func ReadMessage(r io.Reader, msg Message) (err error)

ReadMessage reads a protocol buffer message from reader.

func WriteMessage

func WriteMessage(w io.Writer, msg Message) error

WriteMessage writes a protocol buffer message to writer.

Types

type Message

type Message interface {
	GetMsgType() uint16
	SetMsgType(uint16)
	GetFuncId() uint16
	SetFuncId(uint16)
	GetMsgId() uint64
	SetMsgId(uint64)
	GetFlags() uint8
	SetFlags(uint8)
	GetProtoType() uint8
	SetProtoType(uint8)
	GetTimeout() uint32
	SetTimeout(uint32)
	GetData() []byte
	SetData([]byte)
}

Jump to

Keyboard shortcuts

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