message_parser

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AddStateOrderKind string = "addStateOrder"
View Source
const RemoveStateOrderKind string = "removeStateOrder"

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoMessageAdapter

type InfoMessageAdapter struct {
	BoardId   uint16           `json:"boardId"`
	Timestamp models.Timestamp `json:"timestamp"`
	Msg       string           `json:"msg"`
}

type MessageParser

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

func NewMessageParser

func NewMessageParser(info info.Info, podData pod_data.PodData) MessageParser

func (*MessageParser) Parse

func (parser *MessageParser) Parse(id uint16, raw []byte) (any, error)

type ProtectionAdapter

type ProtectionAdapter struct {
	Name string           `json:"name"`
	Type string           `json:"type"`
	Data *json.RawMessage `json:"data"`
}

type ProtectionMessageAdapter

type ProtectionMessageAdapter struct {
	BoardId    uint16            `json:"boardId"`
	Timestamp  models.Timestamp  `json:"timestamp"`
	Protection ProtectionAdapter `json:"protection"`
}

type StateOrdersAdapter

type StateOrdersAdapter struct {
	Action      string
	StateOrders models.StateOrdersMessage
}

Jump to

Keyboard shortcuts

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