echo

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: 3 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeMessage

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

DeserializeMessage deserializes bytes into Message.

func ProcessMessage

func ProcessMessage(ctx context.Context, conn tao.WriteCloser)

ProcessMessage process the logic of echo message.

Types

type Message

type Message struct {
	Content string
}

Message defines the echo message.

func (Message) MessageNumber

func (em Message) MessageNumber() int32

MessageNumber returns message type number.

func (Message) Serialize

func (em 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