Documentation ¶
Index ¶
- func AddStatReceived(receivedBytes int)
- func AddStatSent(sentBytes int)
- func OpenBrowser(url string)
- func StatReceived() int
- func StatReset()
- func StatSent() int
- type Call
- type Client
- func (c *Client) AddCloudChannel(channelName string, f func(error))
- func (c *Client) AddUnit(unitType string, unitName string, config string, f func(string, error))
- func (c *Client) Address() string
- func (c *Client) CloudAccountInfo(f func(nodeinterface.CloudAccountInfoResponse, error))
- func (c *Client) CloudAddItems(channels []string, items []string, f func(error))
- func (c *Client) CloudAddNode(name string, f func(nodeinterface.CloudAddNodeResponse, error))
- func (c *Client) CloudGetSettings(f func(nodeinterface.CloudGetSettingsResponse, error))
- func (c *Client) CloudLogin(userName string, password string, f func(error))
- func (c *Client) CloudLogout(f func(error))
- func (c *Client) CloudNodes(f func(nodeinterface.CloudNodesResponse, error))
- func (c *Client) CloudRemoveItems(channels []string, items []string, f func(error))
- func (c *Client) CloudRemoveNode(nodeId string, f func(nodeinterface.CloudRemoveNodeResponse, error))
- func (c *Client) CloudSetCurrentNodeId(nodeId string, f func(nodeinterface.CloudSetCurrentNodeIdResponse, error))
- func (c *Client) CloudSetSettings(req nodeinterface.CloudSetSettingsRequest, ...)
- func (c *Client) CloudState(f func(nodeinterface.CloudStateResponse, error))
- func (c *Client) CloudUpdateNode(nodeId string, name string, ...)
- func (c *Client) DataItemRemove(items []string, f func(error))
- func (c *Client) EditCloudChannel(channelId string, channelName string, f func(error))
- func (c *Client) GetAllItems(f func([]common_interfaces.ItemGetUnitItems, error))
- func (c *Client) GetCloudChannelValues(channelId string, f func([]common_interfaces.Item, error))
- func (c *Client) GetCloudChannels(f func([]public_channel.ChannelInfo, error))
- func (c *Client) GetItemValue(name string) common_interfaces.ItemValue
- func (c *Client) GetItemsValues(items []string, f func([]common_interfaces.ItemGetUnitItems, error))
- func (c *Client) GetStatistics(f func(common_interfaces.Statistics, error))
- func (c *Client) GetUnitConfig(unitId string, f func(string, string, string, string, error))
- func (c *Client) GetUnitConfigByType(unitType string, f func(string, string, error))
- func (c *Client) GetUnitState(unitId string, f func(nodeinterface.UnitStateResponse, error))
- func (c *Client) GetUnitStateAll(f func(nodeinterface.UnitStateAllResponse, error))
- func (c *Client) GetUnitValues(unitName string, f func([]common_interfaces.ItemGetUnitItems, error))
- func (c *Client) ListOfUnits(f func([]nodeinterface.UnitListResponseItem, error))
- func (c *Client) Lookup(entity string, f func(lookup.Result, error))
- func (c *Client) Password() string
- func (c *Client) ReadHistory(name string, dtBegin int64, dtEnd int64, f func(*history.ReadResult, error))
- func (c *Client) ReadHistoryChart(name string, dtBegin int64, dtEnd int64, groupTimeRange int64, ...)
- func (c *Client) RemoveCloudChannel(channelId string, f func(error))
- func (c *Client) RemoveUnit(units []string, f func(error))
- func (c *Client) ResAdd(name string, tp string, content []byte, f func(string, error))
- func (c *Client) ResGet(id string, f func(*common_interfaces.ResourcesItem, error))
- func (c *Client) ResList(tp string, filter string, offset int, maxCount int, ...)
- func (c *Client) ResRemove(id string, f func(error))
- func (c *Client) ResRename(id string, name string, f func(error))
- func (c *Client) ResSet(id string, thumbnail []byte, content []byte, f func(error))
- func (c *Client) ServiceApi(f func(nodeinterface.ServiceApiResponse, error))
- func (c *Client) SessionActivate(sessionToken string, f func(nodeinterface.SessionActivateResponse, error))
- func (c *Client) SessionList(userName string, f func(nodeinterface.SessionListResponse, error))
- func (c *Client) SessionOpen(userName string, password string, ...)
- func (c *Client) SessionRemove(sessionToken string, f func(nodeinterface.SessionRemoveResponse, error))
- func (c *Client) SessionToken() string
- func (c *Client) SetUnitConfig(unitId string, unitName string, unitConfig string, f func(error))
- func (c *Client) StartPublicChannels(ids []string, f func(error))
- func (c *Client) StartUnits(ids []string, f func(error))
- func (c *Client) StopPublicChannels(ids []string, f func(error))
- func (c *Client) StopUnits(ids []string, f func(error))
- func (c *Client) UnitCategories(f func(nodeinterface.UnitTypeCategoriesResponse, error))
- func (c *Client) UnitTypes(category string, filter string, offset int, maxCount int, ...)
- func (c *Client) UserAdd(userName string, password string, f func(nodeinterface.UserAddResponse, error))
- func (c *Client) UserList(f func(nodeinterface.UserListResponse, error))
- func (c *Client) UserName() string
- func (c *Client) UserRemove(userName string, f func(nodeinterface.UserRemoveResponse, error))
- func (c *Client) UserSetPassword(userName string, password string, ...)
- func (c *Client) Write(itemName string, value string, f func(error))
- type ItemsWatcher
- type ItemsWatcherItem
- type Statistics
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
Types ¶
type Client ¶
type Client struct { OnSessionOpen func() OnSessionClose func() // contains filtered or unexported fields }
func NewWithSessionToken ¶
func (*Client) AddCloudChannel ¶
func (*Client) CloudAccountInfo ¶ added in v1.0.6
func (c *Client) CloudAccountInfo(f func(nodeinterface.CloudAccountInfoResponse, error))
func (*Client) CloudAddItems ¶
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 (*Client) CloudLogout ¶ added in v1.0.6
func (*Client) CloudNodes ¶ added in v1.0.6
func (c *Client) CloudNodes(f func(nodeinterface.CloudNodesResponse, error))
func (*Client) CloudRemoveItems ¶
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 (c *Client) CloudSetSettings(req nodeinterface.CloudSetSettingsRequest, f func(nodeinterface.CloudSetSettingsResponse, error))
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 (*Client) EditCloudChannel ¶
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 (*Client) GetUnitConfigByType ¶
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) ReadHistory ¶
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 (*Client) RemoveUnit ¶
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) 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 (*Client) SetUnitConfig ¶
func (*Client) StartPublicChannels ¶ added in v1.0.6
func (*Client) StartUnits ¶
func (*Client) StopPublicChannels ¶ added in v1.0.6
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) 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))
type ItemsWatcher ¶
type ItemsWatcher struct {
// contains filtered or unexported fields
}
func NewItemsWatcher ¶
func NewItemsWatcher(client *Client) *ItemsWatcher
func (*ItemsWatcher) Get ¶
func (c *ItemsWatcher) Get(itemName string) common_interfaces.ItemValue
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
}
Click to show internal directories.
Click to hide internal directories.