controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

func (*Config) Update

func (c *Config) Update(w http.ResponseWriter, r *http.Request)

type PluginStorage

type PluginStorage struct{}

func NewPluginStorage

func NewPluginStorage() *PluginStorage

func (*PluginStorage) Get

func (ps *PluginStorage) Get(w http.ResponseWriter, r *http.Request)

Get 获取信息 返回数据结构:{"key":"value"}

func (*PluginStorage) Set

func (ps *PluginStorage) Set(w http.ResponseWriter, r *http.Request)

Set 存储信息 body 示例:{"key", "value"}

type Shadow added in v0.7.0

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

func NewShadow added in v0.7.0

func NewShadow() *Shadow

func (*Shadow) All added in v0.7.0

func (s *Shadow) All(w http.ResponseWriter, _ *http.Request)

All 获取影子所有设备数据

func (*Shadow) Device added in v0.7.0

func (s *Shadow) Device(w http.ResponseWriter, r *http.Request)

Device 设备相关操作

func (*Shadow) DevicePoint added in v0.7.0

func (s *Shadow) DevicePoint(w http.ResponseWriter, r *http.Request)

DevicePoint 获取设备点位数据

func (Shadow) Error added in v0.7.0

func (c Shadow) Error(w http.ResponseWriter, code int, err error, data any)

func (Shadow) JSON added in v0.7.0

func (c Shadow) JSON(w http.ResponseWriter, code int, v any)

func (Shadow) Success added in v0.7.0

func (c Shadow) Success(w http.ResponseWriter, data any)

Jump to

Keyboard shortcuts

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