mock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MSG_ID_PING_MOCK is a define of id of ping message
	MSG_ID_PING_MOCK message.MessageID = 222
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ping

type Ping struct {
	Seq uint32 // Ping sequence
}

Ping struct

func (*Ping) Dict

func (m *Ping) Dict() map[string]interface{}

Dict func

func (*Ping) Len

func (m *Ping) Len() int

Len func

func (*Ping) Marshal

func (m *Ping) Marshal() ([]byte, error)

Marshal func

func (*Ping) MsgID

func (m *Ping) MsgID() message.MessageID

MsgID func

func (*Ping) String

func (m *Ping) String() string

String func

func (*Ping) Unmarshal

func (m *Ping) Unmarshal(data []byte) error

Unmarshal func

Jump to

Keyboard shortcuts

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