Documentation ¶
Index ¶
- Variables
- type DeviceBrowserExtension2FaRequestPresenter
- type DeviceBrowserExtension2FaRequestQuery
- type DeviceBrowserExtension2FaRequestQueryHandler
- type DeviceBrowserExtensionPresenter
- type DeviceBrowserExtensionsQuery
- type DeviceBrowserExtensionsQueryHandler
- type MobileDevicePresenter
- type MobileDeviceQuery
- type MobileDeviceQueryHandler
- type MobileNotificationPresenter
- type MobileNotificationsQuery
- type MobileNotificationsQueryHandler
- type PairedBrowserExtensionPresenter
- type PairedBrowserExtensionQuery
- type PairedBrowserExtensionQueryHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MobileDeviceNotFound = errors.New("Mobile device can not be found")
)
Functions ¶
This section is empty.
Types ¶
type DeviceBrowserExtension2FaRequestQuery ¶
type DeviceBrowserExtension2FaRequestQuery struct {
DeviceId string `uri:"device_id" validate:"required,uuid4"`
}
type DeviceBrowserExtension2FaRequestQueryHandler ¶
type DeviceBrowserExtension2FaRequestQueryHandler struct { Database *gorm.DB Qb *goqu.Database Clock clock.Clock }
func (*DeviceBrowserExtension2FaRequestQueryHandler) Handle ¶
func (h *DeviceBrowserExtension2FaRequestQueryHandler) Handle(query *DeviceBrowserExtension2FaRequestQuery) ([]*DeviceBrowserExtension2FaRequestPresenter, error)
type DeviceBrowserExtensionsQueryHandler ¶
func (*DeviceBrowserExtensionsQueryHandler) Handle ¶
func (h *DeviceBrowserExtensionsQueryHandler) Handle(query *DeviceBrowserExtensionsQuery) ([]*DeviceBrowserExtensionPresenter, error)
type MobileDevicePresenter ¶
type MobileDeviceQuery ¶
type MobileDeviceQuery struct {
Id string `uri:"id"`
}
type MobileDeviceQueryHandler ¶
func (*MobileDeviceQueryHandler) Handle ¶
func (h *MobileDeviceQueryHandler) Handle(query *MobileDeviceQuery) (*MobileDevicePresenter, error)
type MobileNotificationPresenter ¶
type MobileNotificationPresenter struct { Id string `json:"id"` Icon string `json:"icon"` Link string `json:"link"` Message string `json:"message"` PublishedAt string `json:"published_at"` Push bool `json:"push"` Platform string `json:"platform"` Version string `json:"version"` CreatedAt string `json:"created_at"` }
type MobileNotificationsQuery ¶
type MobileNotificationsQuery struct { Id string `uri:"notification_id" validate:"omitempty,uuid4"` Platform string `form:"platform" validate:"omitempty,oneof=android ios huawei"` Version string `form:"version" validate:"omitempty"` PublishedAfter string `form:"published_after" validate:"omitempty,datetime=2006-01-02T15:04:05Z07:00"` }
type MobileNotificationsQueryHandler ¶
func (*MobileNotificationsQueryHandler) FindAll ¶
func (h *MobileNotificationsQueryHandler) FindAll(query *MobileNotificationsQuery) ([]*MobileNotificationPresenter, error)
func (*MobileNotificationsQueryHandler) FindOne ¶
func (h *MobileNotificationsQueryHandler) FindOne(query *MobileNotificationsQuery) (*MobileNotificationPresenter, error)
type PairedBrowserExtensionQuery ¶
type PairedBrowserExtensionQuery struct {
ExtensionId string `uri:"id"`
}
type PairedBrowserExtensionQueryHandler ¶
func (*PairedBrowserExtensionQueryHandler) Handle ¶
func (h *PairedBrowserExtensionQueryHandler) Handle(q *PairedBrowserExtensionQuery) (*PairedBrowserExtensionPresenter, error)
Click to show internal directories.
Click to hide internal directories.