data

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Greet

type Greet struct {
	*types.GreetMessage
}

func NewGreet

func NewGreet(metadata *types.Device) *Greet

func NewGreetFromProto

func NewGreetFromProto(m *types.GreetMessage) *Greet

func (*Greet) Release

func (m *Greet) Release()

type LastMessage

type LastMessage struct {
	*Message

	Update chan *Message
	// contains filtered or unexported fields
}

LastMessage which is stored in Node and serves to identify duplicate messages

func NewLastMessage

func NewLastMessage() *LastMessage

func (*LastMessage) Get

func (m *LastMessage) Get() *Message

func (*LastMessage) ListenUpdates

func (m *LastMessage) ListenUpdates()

ListenUpdates updates the lastMessage with the latest message received

type Message

type Message struct {
	*types.Message
}

func MessageFrom

func MessageFrom(data []byte, metadata *types.Device) *Message

MessageFrom creates a new Message with the provided data.

func MessageFromProto

func MessageFromProto(m *types.Message) *Message

func (*Message) Duplicate

func (m *Message) Duplicate(new *Message) bool

func (*Message) Release

func (m *Message) Release()

Jump to

Keyboard shortcuts

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