Documentation ¶
Index ¶
- func Security() (result controller.Security)
- type Devices
- func (this *Devices) GetConcept(conceptId string) (result model.Concept, err error, code int)
- func (this *Devices) GetDevice(token auth.Token, id string) (devicemodel.Device, error, int)
- func (this *Devices) GetDeviceInfosOfDevices(deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)
- func (this *Devices) GetDeviceInfosOfGroup(groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)
- func (this *Devices) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)
- func (this *Devices) GetFunction(functionId string) (result model.Function, err error, code int)
- func (this *Devices) GetService(id string) (devicemodel.Service, error, int)
- type SecurityMock
- func (this *SecurityMock) CheckBool(token string, kind string, id string, rights string) (allowed bool, err error)
- func (this *SecurityMock) CheckMultiple(token string, kind string, ids []string, rights string) (result map[string]bool, err error)
- func (this *SecurityMock) GetAdminToken() (token string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Security ¶
func Security() (result controller.Security)
Types ¶
type Devices ¶
type Devices struct{}
func (*Devices) GetConcept ¶
func (*Devices) GetDeviceInfosOfDevices ¶
func (*Devices) GetDeviceInfosOfGroup ¶
func (*Devices) GetDeviceTypeSelectables ¶
func (this *Devices) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)
func (*Devices) GetFunction ¶
func (*Devices) GetService ¶
type SecurityMock ¶
type SecurityMock struct{}
func (*SecurityMock) CheckMultiple ¶
func (*SecurityMock) GetAdminToken ¶
func (this *SecurityMock) GetAdminToken() (token string, err error)
Click to show internal directories.
Click to hide internal directories.