providers

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

ApcProvider Connects to an APC Host and provides slices of the Events and Status topics on a period cycle declared in the host mopdel as network sampling period. Slices are returned over a seperate channels to whoever is listening.

Index

Constants

View Source
const (
	HostLocal     = "127.0.0.1:3551"
	HostLocalName = "Local"
	HostsPrefs    = "ApcHost"
	HubHostsPrefs = "HubHost"
)
View Source
const (
	DeviceList                = "DeviceList"
	DeviceDetailsList         = "DeviceDetailsList"
	DeviceDetailById          = "DeviceDetailById"
	DeviceCapabilitiesById    = "DeviceCapabilitiesById"
	DeviceEventHistoryById    = "DeviceEventHistoryById"
	CreateDeviceEventListener = "CreateDeviceEventListener"
)

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(prefs fyne.Preferences) (interfaces.Configuration, error)

func NewHubitatProvider added in v0.9.6

func NewHubitatProvider(ctx context.Context, hubHost *entities.HubHost) interfaces.HubApiProvider

NewHubitatProvider creates a new hub provider to a configured hub host calls DeviceList to initialize the devices in provided hubHost

Types

type HubError added in v0.9.6

type HubError struct {
	Error   bool   `json:"error"`
	Type    string `json:"type"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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