Documentation ¶
Index ¶
- type BrowserExtensionHasBeenPairedWithDevice
- type BrowserExtensionHasNotBeenPairedWithDevice
- type CreateNotification
- type CreateNotificationHandler
- type DeleteAllNotifications
- type DeleteAllNotificationsHandler
- type DeleteNotification
- type DeleteNotificationHandler
- type PairMobileWithBrowserExtension
- type PairMobileWithExtensionHandler
- type PublishNotification
- type PublishNotificationHandler
- type RegisterMobileDevice
- type RegisterMobileDeviceHandler
- type RemoveAllMobileDevices
- type RemoveAllMobileDevicesHandler
- type RemoveDeviceExtensionHandler
- type RemoveDevicePairedExtension
- type Send2FaToken
- type Send2FaTokenHandler
- type Send2FaTokenWebsocketMessage
- type UpdateMobileDevice
- type UpdateMobileDeviceHandler
- type UpdateNotification
- type UpdateNotificationHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserExtensionHasBeenPairedWithDevice ¶
type BrowserExtensionHasBeenPairedWithDevice struct { Event string `json:"event"` BrowserExtensionId string `json:"browser_extension_id"` DeviceId string `json:"device_id"` DevicePublicKey string `json:"device_public_key"` }
func NewBrowserExtensionHasBeenPairedWithDevice ¶
func NewBrowserExtensionHasBeenPairedWithDevice(deviceId, devicePublicKey string, extId uuid.UUID) *BrowserExtensionHasBeenPairedWithDevice
type BrowserExtensionHasNotBeenPairedWithDevice ¶
type BrowserExtensionHasNotBeenPairedWithDevice struct { Event string `json:"event"` BrowserExtensionId string `json:"browser_extension_id"` DeviceId string `json:"device_id"` Reason string `json:"reason"` }
func NewBrowserExtensionHasNotBeenPairedWithDevice ¶
func NewBrowserExtensionHasNotBeenPairedWithDevice(err error, deviceId string, extId uuid.UUID) *BrowserExtensionHasNotBeenPairedWithDevice
type CreateNotification ¶
type CreateNotification struct { Id uuid.UUID Icon string `json:"icon" validate:"required,oneof=updates news features youtube"` Link string `json:"link" validate:"required,max=128"` Message string `json:"message" validate:"required,max=256"` Platform string `json:"platform" validate:"required,oneof=ios android huawei"` Version string `json:"version" validate:"omitempty,max=12"` }
type CreateNotificationHandler ¶
type CreateNotificationHandler struct {
Repository domain.MobileNotificationsRepository
}
func (*CreateNotificationHandler) Handle ¶
func (h *CreateNotificationHandler) Handle(cmd *CreateNotification) error
type DeleteAllNotifications ¶
type DeleteAllNotifications struct{}
type DeleteAllNotificationsHandler ¶
func (*DeleteAllNotificationsHandler) Handle ¶
func (h *DeleteAllNotificationsHandler) Handle(cmd *DeleteAllNotifications)
type DeleteNotification ¶
type DeleteNotification struct {
Id string `uri:"notification_id" validate:"required,uuid4"`
}
type DeleteNotificationHandler ¶
type DeleteNotificationHandler struct {
Repository domain.MobileNotificationsRepository
}
func (*DeleteNotificationHandler) Handle ¶
func (h *DeleteNotificationHandler) Handle(cmd *DeleteNotification) error
type PairMobileWithExtensionHandler ¶
type PairMobileWithExtensionHandler struct { BrowserExtensionsRepository domain.BrowserExtensionRepository MobileDeviceExtensionsRepository mobile_domain.MobileDeviceExtensionsRepository MobileApplicationExtensionsService *adapters.DeviceExtensionsService WebsocketClient *websocket.WebsocketApiClient }
func (*PairMobileWithExtensionHandler) Handle ¶
func (h *PairMobileWithExtensionHandler) Handle(cmd *PairMobileWithBrowserExtension) error
type PublishNotification ¶
type PublishNotification struct {
Id string `uri:"notification_id" validate:"required,uuid4"`
}
type PublishNotificationHandler ¶
type PublishNotificationHandler struct {
Repository domain.MobileNotificationsRepository
}
func (*PublishNotificationHandler) Handle ¶
func (h *PublishNotificationHandler) Handle(cmd *PublishNotification) error
type RegisterMobileDevice ¶
type RegisterMobileDeviceHandler ¶
type RegisterMobileDeviceHandler struct {
Repository domain.MobileDeviceRepository
}
func (*RegisterMobileDeviceHandler) Handle ¶
func (h *RegisterMobileDeviceHandler) Handle(cmd *RegisterMobileDevice) error
type RemoveAllMobileDevices ¶
type RemoveAllMobileDevices struct{}
type RemoveAllMobileDevicesHandler ¶
func (*RemoveAllMobileDevicesHandler) Handle ¶
func (h *RemoveAllMobileDevicesHandler) Handle(cmd *RemoveAllMobileDevices)
type RemoveDeviceExtensionHandler ¶
type RemoveDeviceExtensionHandler struct {
MobileDeviceExtensionsRepository domain.MobileDeviceExtensionsRepository
}
func (*RemoveDeviceExtensionHandler) Handle ¶
func (h *RemoveDeviceExtensionHandler) Handle(cmd *RemoveDevicePairedExtension) error
type Send2FaToken ¶
type Send2FaTokenHandler ¶
type Send2FaTokenHandler struct { BrowserExtensionsRepository domain.BrowserExtensionRepository MobileApplicationExtensionsService *adapters.DeviceExtensionsService WebsocketClient *websocket.WebsocketApiClient }
func (*Send2FaTokenHandler) Handle ¶
func (h *Send2FaTokenHandler) Handle(ctx context.Context, cmd *Send2FaToken) error
type Send2FaTokenWebsocketMessage ¶
type Send2FaTokenWebsocketMessage struct { Event string `json:"event"` ExtensionId string `json:"extension_id"` TokenRequestId string `json:"token_request_id"` DeviceId string `json:"device_id"` Token string `json:"token"` }
func NewSend2FaTokenWebsocketMessage ¶
func NewSend2FaTokenWebsocketMessage(extensionId, deviceId, token, tokenRequestId string) Send2FaTokenWebsocketMessage
type UpdateMobileDevice ¶
type UpdateMobileDeviceHandler ¶
type UpdateMobileDeviceHandler struct {
Repository domain.MobileDeviceRepository
}
func (*UpdateMobileDeviceHandler) Handle ¶
func (h *UpdateMobileDeviceHandler) Handle(cmd *UpdateMobileDevice) error
type UpdateNotification ¶
type UpdateNotification struct { Id string `uri:"notification_id" validate:"required,uuid4"` Icon string `json:"icon" validate:"required,max=128"` Link string `json:"link" validate:"required,max=128"` Message string `json:"message" validate:"required,max=256"` Platform string `json:"platform" validate:"required,oneof=ios android huawei"` Version string `json:"version" validate:"omitempty,max=12"` }
type UpdateNotificationHandler ¶
type UpdateNotificationHandler struct {
Repository domain.MobileNotificationsRepository
}
func (*UpdateNotificationHandler) Handle ¶
func (h *UpdateNotificationHandler) Handle(cmd *UpdateNotification) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.