Documentation ¶
Index ¶
- type Close2FaRequest
- type Close2FaRequestHandler
- type RegisterBrowserExtension
- type RegisterBrowserExtensionHandler
- type RemoveALlExtensionPairedDevicesHandler
- type RemoveAllBrowserExtensions
- type RemoveAllBrowserExtensionsDevices
- type RemoveAllBrowserExtensionsDevicesHandler
- type RemoveAllBrowserExtensionsHandler
- type RemoveAllExtensionPairedDevices
- type RemoveExtensionPairedDevice
- type RemoveExtensionPairedDeviceHandler
- type Request2FaToken
- type Request2FaTokenHandler
- type Request2FaTokenPushNotification
- type StoreLogEvent
- type StoreLogEventHandler
- type UpdateBrowserExtension
- type UpdateBrowserExtensionHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Close2FaRequest ¶
type Close2FaRequestHandler ¶
type Close2FaRequestHandler struct { BrowserExtensionsRepository domain.BrowserExtensionRepository BrowserExtension2FaRequestRepository domain.BrowserExtension2FaRequestRepository }
func (*Close2FaRequestHandler) Handle ¶
func (h *Close2FaRequestHandler) Handle(cmd *Close2FaRequest) error
type RegisterBrowserExtension ¶
type RegisterBrowserExtension struct { BrowserExtensionId uuid.UUID Name string `json:"name" validate:"not_blank,lte=64"` BrowserName string `json:"browser_name" validate:"required,lte=255"` BrowserVersion string `json:"browser_version" validate:"required,lte=32"` PublicKey string `json:"public_key" validate:"required,lte=768"` }
type RegisterBrowserExtensionHandler ¶
type RegisterBrowserExtensionHandler struct {
Repository domain.BrowserExtensionRepository
}
func (*RegisterBrowserExtensionHandler) Handle ¶
func (h *RegisterBrowserExtensionHandler) Handle(cmd *RegisterBrowserExtension) error
type RemoveALlExtensionPairedDevicesHandler ¶
type RemoveALlExtensionPairedDevicesHandler struct { BrowserExtensionRepository domain.BrowserExtensionRepository BrowserExtensionPairedDevicesRepository domain.BrowserExtensionDevicesRepository }
func (*RemoveALlExtensionPairedDevicesHandler) Handle ¶
func (h *RemoveALlExtensionPairedDevicesHandler) Handle(cmd *RemoveAllExtensionPairedDevices) error
type RemoveAllBrowserExtensions ¶
type RemoveAllBrowserExtensions struct{}
RemoveAllBrowserExtensions command for tests
type RemoveAllBrowserExtensionsDevices ¶
type RemoveAllBrowserExtensionsDevices struct{}
RemoveAllBrowserExtensionsDevices command for tests
type RemoveAllBrowserExtensionsDevicesHandler ¶
func (*RemoveAllBrowserExtensionsDevicesHandler) Handle ¶
func (h *RemoveAllBrowserExtensionsDevicesHandler) Handle(cmd *RemoveAllBrowserExtensionsDevices)
type RemoveAllBrowserExtensionsHandler ¶
func (*RemoveAllBrowserExtensionsHandler) Handle ¶
func (h *RemoveAllBrowserExtensionsHandler) Handle(cmd *RemoveAllBrowserExtensions)
type RemoveAllExtensionPairedDevices ¶
type RemoveAllExtensionPairedDevices struct {
ExtensionId string `uri:"extension_id" validate:"required,uuid4"`
}
type RemoveExtensionPairedDeviceHandler ¶
type RemoveExtensionPairedDeviceHandler struct { BrowserExtensionRepository domain.BrowserExtensionRepository BrowserExtensionPairedDevicesRepository domain.BrowserExtensionDevicesRepository }
func (*RemoveExtensionPairedDeviceHandler) Handle ¶
func (h *RemoveExtensionPairedDeviceHandler) Handle(cmd *RemoveExtensionPairedDevice) error
type Request2FaToken ¶
type Request2FaToken struct { Id string `validate:"required,uuid4"` ExtensionId string `uri:"extension_id" validate:"required,uuid4"` Domain string `json:"domain" validate:"required,lte=256"` }
func New2FaTokenRequestFromGin ¶
func New2FaTokenRequestFromGin(c *gin.Context) *Request2FaToken
type Request2FaTokenHandler ¶
type Request2FaTokenHandler struct { BrowserExtensionsRepository domain.BrowserExtensionRepository BrowserExtension2FaRequestRepository domain.BrowserExtension2FaRequestRepository PairedDevicesRepository domain.BrowserExtensionDevicesRepository Pusher push.Pusher }
func (*Request2FaTokenHandler) Handle ¶
func (h *Request2FaTokenHandler) Handle(ctx context.Context, cmd *Request2FaToken) error
type StoreLogEvent ¶
type StoreLogEventHandler ¶
type StoreLogEventHandler struct {
BrowserExtensionsRepository domain.BrowserExtensionRepository
}
func (*StoreLogEventHandler) Handle ¶
func (h *StoreLogEventHandler) Handle(ctx context.Context, cmd *StoreLogEvent)
type UpdateBrowserExtension ¶
type UpdateBrowserExtensionHandler ¶
type UpdateBrowserExtensionHandler struct {
Repository domain.BrowserExtensionRepository
}
func (*UpdateBrowserExtensionHandler) Handle ¶
func (h *UpdateBrowserExtensionHandler) Handle(cmd *UpdateBrowserExtension) error
Click to show internal directories.
Click to hide internal directories.