indiclient

package
v0.0.0-...-e8ed54b Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Properties Properties
	// contains filtered or unexported fields
}

func New

func New(address string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) GetProperties

func (c *Client) GetProperties() error

type Properties

type Properties []Property

func (Properties) GetDeviceGroupsSorted

func (p Properties) GetDeviceGroupsSorted(device string) []string

func (Properties) GetDevicesSorted

func (p Properties) GetDevicesSorted() []string

func (Properties) GetPropertiesForDeviceGroup

func (p Properties) GetPropertiesForDeviceGroup(device, group string) Properties

type Property

type Property struct {
	Device    string
	Group     string
	Type      PropertyType
	Name      string
	Label     string
	State     string
	Perm      string
	Timeout   int
	Timestamp string
	Rule      string
	Values    []Value
}

type PropertyType

type PropertyType int64
const (
	Number PropertyType = iota
	Switch
	Text
)

type Trimmer

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

Trimmer is used to remove blank space from received XML

func (Trimmer) Token

func (tr Trimmer) Token() (xml.Token, error)

type Value

type Value struct {
	Name  string
	Label string
	Value string
}

Jump to

Keyboard shortcuts

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