Documentation
¶
Index ¶
- Constants
- func CreateEntityURL(entityID, userID, source string) string
- func CreateSubscriptionURL(subID, userID, source, typeOf string) string
- func IntoFilterQuery(to string, from string) string
- func PatchEntityURL(entityID string) string
- func QueryDeviceEntityURL(entityID string) string
- type BasicInfo
- type Client
- func (c Client) CreateEntity(id, userID, source string) (*Entity, error)
- func (c Client) GetDeviceEntity(entityID string) (*Entity, error)
- func (c Client) PatchEntity(entityID string, data []map[string]interface{}) error
- func (c *Client) Subscribe(subscriptionID, entityID, topic string) error
- func (c *Client) Unsubscribe(subscriptionID string) error
- type Entity
- type GetEntityResponse
- type Group
- type ListEntity
- type Property
- type SubscriptionData
- type SysField
Constants ¶
View Source
const AppID = "core"
View Source
const MimeJson = "application/json"
Variables ¶
This section is empty.
Functions ¶
func CreateEntityURL ¶ added in v0.4.4
func CreateSubscriptionURL ¶ added in v0.4.5
func IntoFilterQuery ¶ added in v0.4.5
func PatchEntityURL ¶
func QueryDeviceEntityURL ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewCoreClient ¶
func (Client) CreateEntity ¶ added in v0.4.4
func (Client) PatchEntity ¶
func (*Client) Unsubscribe ¶
type GetEntityResponse ¶
type ListEntity ¶
type SubscriptionData ¶
Click to show internal directories.
Click to hide internal directories.