client

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStatReceived

func AddStatReceived(receivedBytes int)

func AddStatSent

func AddStatSent(sentBytes int)

func OpenBrowser

func OpenBrowser(url string)

func StatReceived

func StatReceived() int

func StatReset

func StatReset()

func StatSent

func StatSent() int

Types

type Call

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

type Client

type Client struct {
	OnSessionOpen  func()
	OnSessionClose func()
	// contains filtered or unexported fields
}

func New

func New(window uiinterfaces.Window, address string, userName string, password string) *Client

func NewWithSessionToken

func NewWithSessionToken(window uiinterfaces.Window, address string, userName string, sessionToken string) *Client

func (*Client) AddCloudChannel

func (c *Client) AddCloudChannel(channelName string, f func(error))

func (*Client) AddUnit

func (c *Client) AddUnit(unitType string, unitName string, config string, f func(string, error))

func (*Client) Address

func (c *Client) Address() string

func (*Client) CloudAccountInfo added in v1.0.6

func (c *Client) CloudAccountInfo(f func(nodeinterface.CloudAccountInfoResponse, error))

func (*Client) CloudAddItems

func (c *Client) CloudAddItems(channels []string, items []string, f func(error))

func (*Client) CloudAddNode added in v1.0.6

func (c *Client) CloudAddNode(name string, f func(nodeinterface.CloudAddNodeResponse, error))

func (*Client) CloudGetSettings added in v1.0.6

func (c *Client) CloudGetSettings(f func(nodeinterface.CloudGetSettingsResponse, error))

func (*Client) CloudLogin added in v1.0.6

func (c *Client) CloudLogin(userName string, password string, f func(error))

func (*Client) CloudLogout added in v1.0.6

func (c *Client) CloudLogout(f func(error))

func (*Client) CloudNodes added in v1.0.6

func (c *Client) CloudNodes(f func(nodeinterface.CloudNodesResponse, error))

func (*Client) CloudRemoveItems

func (c *Client) CloudRemoveItems(channels []string, items []string, f func(error))

func (*Client) CloudRemoveNode added in v1.0.6

func (c *Client) CloudRemoveNode(nodeId string, f func(nodeinterface.CloudRemoveNodeResponse, error))

func (*Client) CloudSetCurrentNodeId added in v1.0.6

func (c *Client) CloudSetCurrentNodeId(nodeId string, f func(nodeinterface.CloudSetCurrentNodeIdResponse, error))

func (*Client) CloudSetSettings added in v1.0.6

func (*Client) CloudState added in v1.0.6

func (c *Client) CloudState(f func(nodeinterface.CloudStateResponse, error))

func (*Client) CloudUpdateNode added in v1.0.6

func (c *Client) CloudUpdateNode(nodeId string, name string, f func(nodeinterface.CloudUpdateNodeResponse, error))

func (*Client) DataItemRemove added in v1.0.6

func (c *Client) DataItemRemove(items []string, f func(error))

func (*Client) EditCloudChannel

func (c *Client) EditCloudChannel(channelId string, channelName string, f func(error))

func (*Client) GetAllItems

func (c *Client) GetAllItems(f func([]common_interfaces.ItemGetUnitItems, error))

func (*Client) GetCloudChannelValues

func (c *Client) GetCloudChannelValues(channelId string, f func([]common_interfaces.Item, error))

func (*Client) GetCloudChannels

func (c *Client) GetCloudChannels(f func([]public_channel.ChannelInfo, error))

func (*Client) GetItemValue

func (c *Client) GetItemValue(name string) common_interfaces.ItemValue

func (*Client) GetItemsValues

func (c *Client) GetItemsValues(items []string, f func([]common_interfaces.ItemGetUnitItems, error))

func (*Client) GetStatistics

func (c *Client) GetStatistics(f func(common_interfaces.Statistics, error))

func (*Client) GetUnitConfig

func (c *Client) GetUnitConfig(unitId string, f func(string, string, string, string, error))

func (*Client) GetUnitConfigByType

func (c *Client) GetUnitConfigByType(unitType string, f func(string, string, error))

func (*Client) GetUnitState

func (c *Client) GetUnitState(unitId string, f func(nodeinterface.UnitStateResponse, error))

func (*Client) GetUnitStateAll added in v1.0.6

func (c *Client) GetUnitStateAll(f func(nodeinterface.UnitStateAllResponse, error))

func (*Client) GetUnitValues

func (c *Client) GetUnitValues(unitName string, f func([]common_interfaces.ItemGetUnitItems, error))

func (*Client) ListOfUnits

func (c *Client) ListOfUnits(f func([]nodeinterface.UnitListResponseItem, error))

func (*Client) Lookup

func (c *Client) Lookup(entity string, f func(lookup.Result, error))

func (*Client) Password

func (c *Client) Password() string

func (*Client) ReadHistory

func (c *Client) ReadHistory(name string, dtBegin int64, dtEnd int64, f func(*history.ReadResult, error))

func (*Client) ReadHistoryChart added in v1.0.6

func (c *Client) ReadHistoryChart(name string, dtBegin int64, dtEnd int64, groupTimeRange int64, f func(*nodeinterface.DataItemHistoryChartResponse, error))

func (*Client) RemoveCloudChannel

func (c *Client) RemoveCloudChannel(channelId string, f func(error))

func (*Client) RemoveUnit

func (c *Client) RemoveUnit(units []string, f func(error))

func (*Client) ResAdd

func (c *Client) ResAdd(name string, tp string, content []byte, f func(string, error))

func (*Client) ResGet

func (c *Client) ResGet(id string, f func(*common_interfaces.ResourcesItem, error))

func (*Client) ResList

func (c *Client) ResList(tp string, filter string, offset int, maxCount int, f func(common_interfaces.ResourcesInfo, error))

func (*Client) ResRemove

func (c *Client) ResRemove(id string, f func(error))

func (*Client) ResRename

func (c *Client) ResRename(id string, name string, f func(error))

func (*Client) ResSet

func (c *Client) ResSet(id string, thumbnail []byte, content []byte, f func(error))

func (*Client) ServiceApi added in v1.0.5

func (c *Client) ServiceApi(f func(nodeinterface.ServiceApiResponse, error))

func (*Client) SessionActivate added in v1.0.1

func (c *Client) SessionActivate(sessionToken string, f func(nodeinterface.SessionActivateResponse, error))

func (*Client) SessionList added in v1.0.1

func (c *Client) SessionList(userName string, f func(nodeinterface.SessionListResponse, error))

func (*Client) SessionOpen

func (c *Client) SessionOpen(userName string, password string, f func(nodeinterface.SessionOpenResponse, error))

func (*Client) SessionRemove added in v1.0.1

func (c *Client) SessionRemove(sessionToken string, f func(nodeinterface.SessionRemoveResponse, error))

func (*Client) SessionToken

func (c *Client) SessionToken() string

func (*Client) SetUnitConfig

func (c *Client) SetUnitConfig(unitId string, unitName string, unitConfig string, f func(error))

func (*Client) StartPublicChannels added in v1.0.6

func (c *Client) StartPublicChannels(ids []string, f func(error))

func (*Client) StartUnits

func (c *Client) StartUnits(ids []string, f func(error))

func (*Client) StopPublicChannels added in v1.0.6

func (c *Client) StopPublicChannels(ids []string, f func(error))

func (*Client) StopUnits

func (c *Client) StopUnits(ids []string, f func(error))

func (*Client) UnitCategories

func (c *Client) UnitCategories(f func(nodeinterface.UnitTypeCategoriesResponse, error))

func (*Client) UnitTypes

func (c *Client) UnitTypes(category string, filter string, offset int, maxCount int, f func(nodeinterface.UnitTypeListResponse, error))

func (*Client) UserAdd added in v1.0.1

func (c *Client) UserAdd(userName string, password string, f func(nodeinterface.UserAddResponse, error))

func (*Client) UserList added in v1.0.1

func (c *Client) UserList(f func(nodeinterface.UserListResponse, error))

func (*Client) UserName

func (c *Client) UserName() string

func (*Client) UserRemove added in v1.0.1

func (c *Client) UserRemove(userName string, f func(nodeinterface.UserRemoveResponse, error))

func (*Client) UserSetPassword added in v1.0.1

func (c *Client) UserSetPassword(userName string, password string, f func(nodeinterface.UserSetPasswordResponse, error))

func (*Client) Write

func (c *Client) Write(itemName string, value string, f func(error))

type ItemsWatcher

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

func NewItemsWatcher

func NewItemsWatcher(client *Client) *ItemsWatcher

func (*ItemsWatcher) Get

func (*ItemsWatcher) Start

func (c *ItemsWatcher) Start()

func (*ItemsWatcher) Stop

func (c *ItemsWatcher) Stop()

type ItemsWatcherItem

type ItemsWatcherItem struct {
	Name string
	// contains filtered or unexported fields
}

type Statistics

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

Jump to

Keyboard shortcuts

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