messages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseMessage

func NewBaseMessage(t net.MessageType, data interface{}) net.Message

NewBaseMessage new base message

Types

type BaseMessage

type BaseMessage struct {
	// contains filtered or unexported fields
}

BaseMessage base message

func (*BaseMessage) Data

func (msg *BaseMessage) Data() interface{}

Data get the message data

func (*BaseMessage) MessageType

func (msg *BaseMessage) MessageType() net.MessageType

MessageType get message type

func (*BaseMessage) String

func (msg *BaseMessage) String() string

String get the message to string

Jump to

Keyboard shortcuts

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