command

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: 13 Imported by: 0

Documentation

Index

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

type DeleteAllNotifications

type DeleteAllNotifications struct{}

type DeleteAllNotificationsHandler

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

func (*DeleteAllNotificationsHandler) Handle

type DeleteNotification

type DeleteNotification struct {
	Id string `uri:"notification_id" validate:"required,uuid4"`
}

type DeleteNotificationHandler

type DeleteNotificationHandler struct {
	Repository domain.MobileNotificationsRepository
}

func (*DeleteNotificationHandler) Handle

type PairMobileWithBrowserExtension

type PairMobileWithBrowserExtension struct {
	DeviceId        string `uri:"device_id" validate:"required"`
	ExtensionId     string `json:"extension_id" validate:"required,uuid4"`
	DevicePublicKey string `json:"device_public_key" validate:"required,lte=768"`
}

type PairMobileWithExtensionHandler

type PairMobileWithExtensionHandler struct {
	BrowserExtensionsRepository        domain.BrowserExtensionRepository
	MobileDeviceExtensionsRepository   mobile_domain.MobileDeviceExtensionsRepository
	MobileApplicationExtensionsService *adapters.DeviceExtensionsService
	WebsocketClient                    *websocket.WebsocketApiClient
}

func (*PairMobileWithExtensionHandler) Handle

type PublishNotification

type PublishNotification struct {
	Id string `uri:"notification_id" validate:"required,uuid4"`
}

type PublishNotificationHandler

type PublishNotificationHandler struct {
	Repository domain.MobileNotificationsRepository
}

func (*PublishNotificationHandler) Handle

type RegisterMobileDevice

type RegisterMobileDevice struct {
	Id       uuid.UUID
	Name     string `json:"name" validate:"not_blank,max=128"`
	Platform string `json:"platform" validate:"required,oneof=ios android huawei"`
	FcmToken string `json:"fcm_token" validate:"max=256"`
}

type RegisterMobileDeviceHandler

type RegisterMobileDeviceHandler struct {
	Repository domain.MobileDeviceRepository
}

func (*RegisterMobileDeviceHandler) Handle

type RemoveAllMobileDevices

type RemoveAllMobileDevices struct{}

type RemoveAllMobileDevicesHandler

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

func (*RemoveAllMobileDevicesHandler) Handle

type RemoveDeviceExtensionHandler

type RemoveDeviceExtensionHandler struct {
	MobileDeviceExtensionsRepository domain.MobileDeviceExtensionsRepository
}

func (*RemoveDeviceExtensionHandler) Handle

type RemoveDevicePairedExtension

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

type Send2FaToken

type Send2FaToken struct {
	DeviceId       string `uri:"device_id" validate:"required,uuid4"`
	ExtensionId    string `json:"extension_id" validate:"required,uuid4"`
	TokenRequestId string `json:"token_request_id" validate:"required,uuid4"`
	Token          string `json:"token" validate:"required,lte=768"`
}

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 UpdateMobileDevice struct {
	Id       string `uri:"device_id" validate:"required,uuid4"`
	Name     string `json:"name" validate:"not_blank,max=128"`
	Platform string `json:"platform" validate:"omitempty,oneof=ios android huawei"`
	FcmToken string `json:"fcm_token" validate:"max=256"`
}

type UpdateMobileDeviceHandler

type UpdateMobileDeviceHandler struct {
	Repository domain.MobileDeviceRepository
}

func (*UpdateMobileDeviceHandler) Handle

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

Jump to

Keyboard shortcuts

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