Documentation ¶
Index ¶
- Constants
- Variables
- func GetUserId(token string) (userId string, err error)
- func IsAdmin(token string) bool
- type Claims
- type Events
- func (this *Events) CheckEvent(token string, id string) int
- func (this *Events) Deploy(owner string, deployment deploymentmodel.Deployment) error
- func (this *Events) DeviceGroupsAndImportsEnabled() bool
- func (this *Events) GetEventStates(token string, ids []string) (states map[string]bool, err error, code int)
- func (this *Events) Remove(owner string, deploymentId string) error
- func (this *Events) UpdateDeviceGroup(owner string, group model.DeviceGroup) error
Constants ¶
View Source
const IdParameterSeperator = "$"
Variables ¶
View Source
var ErrMissingCharacteristicInEvent = errors.New("missing characteristic id in event")
Functions ¶
Types ¶
type Claims ¶
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, config config.Config, analytics interfaces.Analytics, devices interfaces.Devices, imports interfaces.Imports, m *metrics.Metrics) (result *Events, err error)
func (*Events) Deploy ¶
func (this *Events) Deploy(owner string, deployment deploymentmodel.Deployment) error
func (*Events) DeviceGroupsAndImportsEnabled ¶
func (*Events) GetEventStates ¶
func (*Events) UpdateDeviceGroup ¶
func (this *Events) UpdateDeviceGroup(owner string, group model.DeviceGroup) error
Click to show internal directories.
Click to hide internal directories.