pingpong

package
v0.0.0-...-2c485cb Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 18

Documentation

Index

Constants

View Source
const (
	// PingPontMessage defines message number.
	PingPontMessage int32 = 1
)

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) MessageNumber

func (pp Message) MessageNumber() int32

MessageNumber returns the message number.

func (Message) Serialize

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

Serialize serializes Message into bytes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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