payload

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-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 DeviceProperties

type DeviceProperties struct {
	Id         string     `json:"id"`
	Time       model.Time `json:"time,omitempty"`
	Timestamp  int64      `json:"ts,omitempty"`
	Properties []Property `json:"properties"`
}

type DevicePropertyUp

type DevicePropertyUp struct {
	DeviceProperties
	//子设备
	Devices []DeviceProperties `json:"devices,omitempty"`
}

type Event

type Event struct {
	Id      string         `json:"id"`
	Name    string         `json:"name"`
	Title   string         `json:"title"`
	Message string         `json:"message,omitempty"`
	Output  map[string]any `json:"output"`
}

type Hash

type Hash map[string]any

type Property

type Property struct {
	Name      string     `json:"name"`
	Time      model.Time `json:"time,omitempty"`
	Timestamp int64      `json:"ts,omitempty"`
	Value     any        `json:"value"`
}

Jump to

Keyboard shortcuts

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