packet

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean bool

func (Boolean) Inner

func (b Boolean) Inner() any

type Enum

type Enum string

func (Enum) Inner

func (e Enum) Inner() any

type Metadata

type Metadata struct {
	From      string
	To        string
	ID        uint16
	Timestamp time.Time
	// TODO: generate a synthetic seq num for udp data
	SeqNum uint32
}

func NewMetaData

func NewMetaData(from, to string, id uint16, seqNum uint32, timestamp time.Time) Metadata

type Numeric

type Numeric float64

func (Numeric) Inner

func (n Numeric) Inner() any

type Packet

type Packet struct {
	Metadata Metadata
	Payload  []byte
}

type Value

type Value interface {
	Inner() any
}

type ValueDescriptor

type ValueDescriptor struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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