Documentation
¶
Index ¶
- type AbstractProcess
- type AbstractTask
- type Config
- type DeviceInstance
- type HistoryResult
- type HistorySeries
- type Interface
- type Lib
- func (this *Lib) CompleteDeviceHistory(jwt jwt_http_router.Jwt, duration string, devices []map[string]interface{}) (result []map[string]interface{}, err error)
- func (this *Lib) CompleteDevices(jwt jwt_http_router.Jwt, ids []string) (result []map[string]interface{}, err error)
- func (this *Lib) CompleteDevicesOrdered(jwt jwt_http_router.Jwt, ids []string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) CompleteGatewayHistory(jwt jwt_http_router.Jwt, duration string, gateways []map[string]interface{}) (result []map[string]interface{}, err error)
- func (this *Lib) Config() Config
- func (this *Lib) FilterDevicesByState(jwt jwt_http_router.Jwt, devices []map[string]interface{}, state string) (result []map[string]interface{}, err error)
- func (this *Lib) GetConnectionFilteredDevices(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error)
- func (this *Lib) GetConnectionFilteredDevicesOrder(jwt jwt_http_router.Jwt, value string, sortAsc bool) (result []map[string]interface{}, err error)
- func (this *Lib) GetDeviceLogHistory(jwt jwt_http_router.Jwt, deviceIds []string, duration string) (result map[string]HistorySeries, err error)
- func (this *Lib) GetDeviceLogStates(jwt jwt_http_router.Jwt, deviceIds []string) (result map[string]bool, err error)
- func (this *Lib) GetDevicesHistory(jwt jwt_http_router.Jwt, duration string) (result []map[string]interface{}, err error)
- func (this *Lib) GetExtendedProcessList(jwt jwt_http_router.Jwt, query url.Values) (result []map[string]interface{}, err error)
- func (this *Lib) GetGatewayDevices(jwt jwt_http_router.Jwt, id string) (ids []string, err error)
- func (this *Lib) GetGatewayLogHistory(jwt jwt_http_router.Jwt, ids []string, duration string) (result map[string]HistorySeries, err error)
- func (this *Lib) GetGatewayLogStates(jwt jwt_http_router.Jwt, deviceIds []string) (result map[string]bool, err error)
- func (this *Lib) GetGatewaysHistory(jwt jwt_http_router.Jwt, duration string) (result []map[string]interface{}, err error)
- func (this *Lib) GetLogHistory(jwt jwt_http_router.Jwt, kind string, ids []string, duration string) (result map[string]HistorySeries, err error)
- func (this *Lib) GetLogedges(jwt jwt_http_router.Jwt, kind string, ids []string, duration string) (result map[string]interface{}, err error)
- func (this *Lib) GetLogstarts(jwt jwt_http_router.Jwt, kind string, ids []string) (result map[string]interface{}, err error)
- func (this *Lib) GetProcessDependencyList(jwt jwt_http_router.Jwt, processIds []string) (result []Metadata, err error)
- func (this *Lib) GetProcessDeploymentList(jwt jwt_http_router.Jwt, query url.Values) (result []map[string]interface{}, err error)
- func (this *Lib) ListAllDevices(jwt jwt_http_router.Jwt) (result []map[string]interface{}, err error)
- func (this *Lib) ListAllGateways(jwt jwt_http_router.Jwt) (result []map[string]interface{}, err error)
- func (this *Lib) ListDevices(jwt jwt_http_router.Jwt, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) ListDevicesByTag(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error)
- func (this *Lib) ListDevicesByUserTag(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error)
- func (this *Lib) ListDevicesOrdered(jwt jwt_http_router.Jwt, limit string, offset string, orderfeature string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) ListGateways(jwt jwt_http_router.Jwt, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) ListGatewaysOrdered(jwt jwt_http_router.Jwt, limit string, offset string, orderfeature string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) ListOrderdDevicesByTag(jwt jwt_http_router.Jwt, value string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) ListOrderedDevicesByUserTag(jwt jwt_http_router.Jwt, value string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermCheck(jwt jwt_http_router.Jwt, kind string, ids []string, right string) (result map[string]bool, err error)
- func (this *Lib) PermCheckDeviceAdmin(jwt jwt_http_router.Jwt, ids []string) (result map[string]bool, err error)
- func (this *Lib) PermCheckDeviceRead(jwt jwt_http_router.Jwt, ids []string) (result map[string]bool, err error)
- func (this *Lib) PermDeviceIdList(jwt jwt_http_router.Jwt, ids []string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermDeviceIdListOrdered(jwt jwt_http_router.Jwt, ids []string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermIdList(jwt jwt_http_router.Jwt, kind string, ids []string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermIdListOrdered(jwt jwt_http_router.Jwt, kind string, ids []string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermList(jwt jwt_http_router.Jwt, kind string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermListAll(jwt jwt_http_router.Jwt, kind string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermListAllDevices(jwt jwt_http_router.Jwt, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermListAllGateways(jwt jwt_http_router.Jwt, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermListDevices(jwt jwt_http_router.Jwt, right string, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) PermListDevicesOrdered(jwt jwt_http_router.Jwt, right string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermListGateways(jwt jwt_http_router.Jwt, right string, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) PermListGatewaysOrdered(jwt jwt_http_router.Jwt, right string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermListOrdered(jwt jwt_http_router.Jwt, kind string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearch(jwt jwt_http_router.Jwt, kind string, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearchDevices(jwt jwt_http_router.Jwt, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearchDevicesOrdered(jwt jwt_http_router.Jwt, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearchGateways(jwt jwt_http_router.Jwt, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearchGatewaysOrdered(jwt jwt_http_router.Jwt, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSearchOrdered(jwt jwt_http_router.Jwt, kind string, query string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelect(jwt jwt_http_router.Jwt, kind string, field string, value string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelectOrdered(jwt jwt_http_router.Jwt, kind string, field string, value string, right string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelectTagDevices(jwt jwt_http_router.Jwt, value string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelectTagDevicesOrdered(jwt jwt_http_router.Jwt, value string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelectUserTagDevices(jwt jwt_http_router.Jwt, value string, right string) (result []map[string]interface{}, err error)
- func (this *Lib) PermSelectUserTagDevicesOrdered(jwt jwt_http_router.Jwt, value string, right string, limit string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) SearchDevices(jwt jwt_http_router.Jwt, query string, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) SearchDevicesOrdered(jwt jwt_http_router.Jwt, query string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) SearchGateways(jwt jwt_http_router.Jwt, query string, limit string, offset string) (result []map[string]interface{}, err error)
- func (this *Lib) SearchGatewaysOrdered(jwt jwt_http_router.Jwt, query string, limit string, offset string, ...) (result []map[string]interface{}, err error)
- func (this *Lib) SortByName(input []map[string]interface{}, sortAsc bool) (output []map[string]interface{})
- type Metadata
- type MsgEvent
- type OfflineReason
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractProcess ¶
type AbstractProcess struct { AbstractTasks []AbstractTask `json:"abstract_tasks"` ReceiveTasks []MsgEvent `json:"receive_tasks"` MsgEvents []MsgEvent `json:"msg_events"` }
type AbstractTask ¶
type AbstractTask struct { Selected DeviceInstance `json:"selected"` State string `json:"state" bson:"-"` Tasks []Task `json:"tasks"` }
type Config ¶
type Config struct { ServerPort string LogLevel string IotUrl string ConnectionLogUrl string PermissionsUrl string CamundaWrapperUrl string ProcessDeploymentUrl string ForceUser string ForceAuth string }
func LoadConfig ¶
type DeviceInstance ¶
type HistoryResult ¶
type HistoryResult struct {
Series []HistorySeries `json:"Series"`
}
type HistorySeries ¶
type Interface ¶
type Interface interface { Config() Config ListDevicesByUserTag(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error) FilterDevicesByState(jwt jwt_http_router.Jwt, devices []map[string]interface{}, state string) (result []map[string]interface{}, err error) SortByName(input []map[string]interface{}, sortAsc bool) (output []map[string]interface{}) ListDevicesByTag(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error) GetConnectionFilteredDevicesOrder(jwt jwt_http_router.Jwt, value string, sortAsc bool) (result []map[string]interface{}, err error) GetConnectionFilteredDevices(jwt jwt_http_router.Jwt, value string) (result []map[string]interface{}, err error) ListAllDevices(jwt jwt_http_router.Jwt) (result []map[string]interface{}, err error) ListDevices(jwt jwt_http_router.Jwt, limit string, offset string) (result []map[string]interface{}, err error) SearchDevices(jwt jwt_http_router.Jwt, query string, limit string, offset string) (result []map[string]interface{}, err error) ListDevicesOrdered(jwt jwt_http_router.Jwt, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) SearchDevicesOrdered(jwt jwt_http_router.Jwt, query string, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) ListOrderdDevicesByTag(jwt jwt_http_router.Jwt, value string, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) ListOrderedDevicesByUserTag(jwt jwt_http_router.Jwt, value string, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) CompleteDevices(jwt jwt_http_router.Jwt, ids []string) (result []map[string]interface{}, err error) CompleteDevicesOrdered(jwt jwt_http_router.Jwt, ids []string, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) GetDevicesHistory(jwt jwt_http_router.Jwt, duration string) (result []map[string]interface{}, err error) GetGatewaysHistory(jwt jwt_http_router.Jwt, duration string) (result []map[string]interface{}, err error) ListGateways(jwt jwt_http_router.Jwt, limit string, offset string) (result []map[string]interface{}, err error) SearchGateways(jwt jwt_http_router.Jwt, query string, limit string, offset string) (result []map[string]interface{}, err error) ListGatewaysOrdered(jwt jwt_http_router.Jwt, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) SearchGatewaysOrdered(jwt jwt_http_router.Jwt, query string, limit string, offset string, orderfeature string, direction string) (result []map[string]interface{}, err error) GetExtendedProcessList(jwt jwt_http_router.Jwt, query url.Values) (result []map[string]interface{}, err error) CompleteDeviceHistory(jwt jwt_http_router.Jwt, duration string, devices []map[string]interface{}) (result []map[string]interface{}, err error) CompleteGatewayHistory(jwt jwt_http_router.Jwt, duration string, devices []map[string]interface{}) (result []map[string]interface{}, err error) ListAllGateways(jwt jwt_http_router.Jwt) (result []map[string]interface{}, err error) GetGatewayDevices(jwt jwt_http_router.Jwt, id string) (ids []string, err error) }
type Lib ¶
type Lib struct {
// contains filtered or unexported fields
}
func (*Lib) CompleteDeviceHistory ¶
func (*Lib) CompleteDevices ¶
func (*Lib) CompleteDevicesOrdered ¶
func (*Lib) CompleteGatewayHistory ¶
func (*Lib) FilterDevicesByState ¶
func (*Lib) GetConnectionFilteredDevices ¶
func (*Lib) GetConnectionFilteredDevicesOrder ¶
func (*Lib) GetDeviceLogHistory ¶
func (*Lib) GetDeviceLogStates ¶
func (*Lib) GetDevicesHistory ¶
func (*Lib) GetExtendedProcessList ¶
func (*Lib) GetGatewayDevices ¶
func (*Lib) GetGatewayLogHistory ¶
func (*Lib) GetGatewayLogStates ¶
func (*Lib) GetGatewaysHistory ¶
func (*Lib) GetLogHistory ¶
func (*Lib) GetLogedges ¶
func (*Lib) GetLogstarts ¶
func (*Lib) GetProcessDependencyList ¶
func (*Lib) GetProcessDeploymentList ¶
func (*Lib) ListAllDevices ¶
func (*Lib) ListAllGateways ¶
func (*Lib) ListDevices ¶
func (*Lib) ListDevicesByTag ¶
func (*Lib) ListDevicesByUserTag ¶
func (*Lib) ListDevicesOrdered ¶
func (*Lib) ListGateways ¶
func (*Lib) ListGatewaysOrdered ¶
func (*Lib) ListOrderdDevicesByTag ¶
func (*Lib) ListOrderedDevicesByUserTag ¶
func (*Lib) PermCheckDeviceAdmin ¶
func (*Lib) PermCheckDeviceRead ¶
func (*Lib) PermDeviceIdList ¶
func (*Lib) PermDeviceIdListOrdered ¶
func (*Lib) PermIdList ¶
func (*Lib) PermIdListOrdered ¶
func (*Lib) PermListAll ¶
func (*Lib) PermListAllDevices ¶
func (*Lib) PermListAllGateways ¶
func (*Lib) PermListDevices ¶
func (*Lib) PermListDevicesOrdered ¶
func (*Lib) PermListGateways ¶
func (*Lib) PermListGatewaysOrdered ¶
func (*Lib) PermListOrdered ¶
func (*Lib) PermSearch ¶
func (*Lib) PermSearchDevices ¶
func (*Lib) PermSearchDevicesOrdered ¶
func (*Lib) PermSearchGateways ¶
func (*Lib) PermSearchGatewaysOrdered ¶
func (*Lib) PermSearchOrdered ¶
func (*Lib) PermSelect ¶
func (*Lib) PermSelectOrdered ¶
func (*Lib) PermSelectTagDevices ¶
func (*Lib) PermSelectTagDevicesOrdered ¶
func (*Lib) PermSelectUserTagDevices ¶
func (*Lib) PermSelectUserTagDevicesOrdered ¶
func (*Lib) SearchDevices ¶
func (*Lib) SearchDevicesOrdered ¶
func (*Lib) SearchGateways ¶
func (*Lib) SearchGatewaysOrdered ¶
type Metadata ¶
type Metadata struct { Process string `json:"process"` Abstract AbstractProcess `json:"abstract"` Online bool `json:"online"` Owner string `json:"owner"` }
type OfflineReason ¶
Click to show internal directories.
Click to hide internal directories.