api

package
v0.0.0-...-fc28734 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceAPI

type DeviceAPI interface {
	GetDeviceShadow(ctx *comctx.Context) (any, error)
	GetLatestDeviceProperty(ctx *comctx.Context) (any, error)
	PublishEvent(ctx *comctx.Context) (any, error)
	SetDeviceNumber(ctx *comctx.Context) (any, error)
}

func NewDeviceAPI

func NewDeviceAPI(driver models.DriverEngine) DeviceAPI

type PluginAPI

type PluginAPI interface {
	CreateAndActivatePlugin(ctx *comctx.Context) (any, error)
	ActivatePlugin(ctx *comctx.Context) (any, error)
	ClosePlugin(ctx *comctx.Context) (any, error)
	RestartPlugin(ctx *comctx.Context) (any, error)
	CheckPluginStatus(ctx *comctx.Context) (any, error)
	CheckAllPluginStatus(ctx *comctx.Context) (any, error)
	GetAllConfigs(ctx *comctx.Context) (any, error)
	UpdateNorthLink(c *comctx.Context) (any, error)
}

func NewPluginAPI

func NewPluginAPI(driver models.DriverEngine) PluginAPI

type PluginStatus

type PluginStatus struct {
	Name   string         `json:"name,omitempty"`
	Enable bool           `json:"enable,omitempty"`
	On     bool           `json:"on,omitempty"`
	Status map[string]int `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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