subscription

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatChoices = []string{
	"none",
	"json",
}

Functions

func QosChoices

func QosChoices() []string

Types

type Data

type Data struct {
	Name   string
	Topic  string
	Qos    byte
	Format string
}

type Message

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

func (Message) Data

func (m Message) Data() []byte

func (Message) RecvAt

func (m Message) RecvAt() time.Time

func (Message) RecvTopic

func (m Message) RecvTopic() string

type Model

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

func NewModel

func NewModel(data Data) Model

func (Model) Clear

func (m Model) Clear()

Clears all messages

func (Model) Data

func (m Model) Data() Data

func (Model) Description

func (m Model) Description() string

func (Model) FilterValue

func (m Model) FilterValue() string

func (Model) Messages

func (m Model) Messages() []Message

func (Model) OnPubHandler

func (m Model) OnPubHandler(client mqtt.Client, msg mqtt.Message)

func (Model) Title

func (m Model) Title() string

type ReceivedMsg

type ReceivedMsg struct {
	Sub Model
}

Jump to

Keyboard shortcuts

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