query

package
v0.0.0-...-e75800c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 DeviceBrowserExtension2FaRequestPresenter

type DeviceBrowserExtension2FaRequestPresenter struct {
	Id          string `json:"token_request_id"`
	ExtensionId string `json:"extension_id"`
	Domain      string `json:"domain"`
	Status      string `json:"status"`
	CreatedAt   string `json:"created_at"`
}

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

type DeviceBrowserExtensionPresenter

type DeviceBrowserExtensionPresenter struct {
	Id             string `json:"id"`
	Name           string `json:"name"`
	BrowserName    string `json:"browser_name"`
	BrowserVersion string `json:"browser_version"`
	CreatedAt      string `json:"created_at"`
	UpdatedAt      string `json:"updated_at"`
	PairedAt       string `json:"paired_at"`
}

type DeviceBrowserExtensionsQuery

type DeviceBrowserExtensionsQuery struct {
	DeviceId    string `uri:"device_id" validate:"required,uuid4"`
	ExtensionId string `uri:"extension_id" validate:"omitempty,uuid4"`
}

type DeviceBrowserExtensionsQueryHandler

type DeviceBrowserExtensionsQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*DeviceBrowserExtensionsQueryHandler) Handle

type MobileDevicePresenter

type MobileDevicePresenter struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Platform  string `json:"platform"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

type MobileDeviceQuery

type MobileDeviceQuery struct {
	Id string `uri:"id"`
}

type MobileDeviceQueryHandler

type MobileDeviceQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*MobileDeviceQueryHandler) Handle

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

type MobileNotificationsQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*MobileNotificationsQueryHandler) FindAll

func (*MobileNotificationsQueryHandler) FindOne

type PairedBrowserExtensionPresenter

type PairedBrowserExtensionPresenter struct {
	Id        string `json:"extension_id"`
	Name      string `json:"extension_name"`
	PublicKey string `json:"extension_public_key"`
}

type PairedBrowserExtensionQuery

type PairedBrowserExtensionQuery struct {
	ExtensionId string `uri:"id"`
}

type PairedBrowserExtensionQueryHandler

type PairedBrowserExtensionQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*PairedBrowserExtensionQueryHandler) Handle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL