event

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Timestamp int64  `json:"timestamp"`
	Type      uint16 `json:"type"`
	Value     string `json:"payload"`
}

func Deserialize

func Deserialize(jsonData []byte) (Event, error)

func (Event) Serialize

func (e Event) Serialize() ([]byte, error)

Jump to

Keyboard shortcuts

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