reliabletopic

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FactoryID is the factory id of reliable topic message.
	FactoryID = -18

	// MessageClassID is the class id of reliable topic message.
	MessageClassID = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

func NewMessage

func NewMessage(payload serialization.Data, publisherAddr core.Address) *Message

func (*Message) ClassID

func (r *Message) ClassID() (classID int32)

func (*Message) FactoryID

func (r *Message) FactoryID() (factoryID int32)

func (*Message) Payload

func (r *Message) Payload() serialization.Data

func (*Message) PublishTime

func (r *Message) PublishTime() int64

func (*Message) PublisherAddress

func (r *Message) PublisherAddress() core.Address

func (*Message) ReadData

func (r *Message) ReadData(input serialization.DataInput) (err error)

func (*Message) WriteData

func (r *Message) WriteData(output serialization.DataOutput) (err error)

type MessageFactory

type MessageFactory struct {
}

func NewMessageFactory

func NewMessageFactory() *MessageFactory

func (*MessageFactory) Create

Jump to

Keyboard shortcuts

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