pingpong

package
v0.0.0-...-42eb21a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PingPongMessage defines message number.
	PingPongMessage     int32 = 1
	PingPongMessageName       = "PingPongMessage"
)

Variables

This section is empty.

Functions

func DeserializeMessage

func DeserializeMessage(data []byte) (message tao.Message, err error)

DeserializeMessage deserializes bytes into Message.

Types

type Message

type Message struct {
	Info string
}

Message defines message format.

func (Message) RequestCommand

func (pp Message) RequestCommand() int32

RequestCommand returns the request command.

func (Message) RequestName

func (pp Message) RequestName() string

func (Message) ResponseCommand

func (pp Message) ResponseCommand() int32

func (Message) ResponseName

func (pp Message) ResponseName() string

func (Message) Serialize

func (pp Message) Serialize() ([]byte, error)

Serialize serializes Message into bytes.

func (Message) SetCustom

func (pp Message) SetCustom(interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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