Documentation ¶
Index ¶
- type NodeAPI
- func (n *NodeAPI) Delete(IDs []string) (int64, error)
- func (n *NodeAPI) Get(filters []storageTY.Filter) (nodeTY.Node, error)
- func (n *NodeAPI) GetByGatewayAndNodeID(gatewayID, nodeID string) (*nodeTY.Node, error)
- func (n *NodeAPI) GetByID(id string) (*nodeTY.Node, error)
- func (n *NodeAPI) GetByIDs(ids []string) ([]nodeTY.Node, error)
- func (n *NodeAPI) GetEntityInterface() interface{}
- func (n *NodeAPI) Import(data interface{}) error
- func (n *NodeAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
- func (n *NodeAPI) Save(node *nodeTY.Node, publishEvent bool) error
- func (n *NodeAPI) UpdateFirmwareState(id string, data map[string]interface{}) error
- func (n *NodeAPI) VerifyNodeUpStatus(inactiveDuration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeAPI ¶
type NodeAPI struct {
// contains filtered or unexported fields
}
func (*NodeAPI) GetByGatewayAndNodeID ¶
GetByGatewayAndNodeID returns a node details by gatewayID and nodeId of a message
func (*NodeAPI) GetEntityInterface ¶
func (n *NodeAPI) GetEntityInterface() interface{}
func (*NodeAPI) List ¶
func (n *NodeAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
List by filter and pagination
func (*NodeAPI) UpdateFirmwareState ¶
UpdateFirmwareState func
func (*NodeAPI) VerifyNodeUpStatus ¶
Verifies node up status by checking the last seen timestamp if the last seen greater than x minutes/seconds or specified duration in that node will be marked as down
Click to show internal directories.
Click to hide internal directories.