2fas-server/internal/api/browser_extension/app/app.go
2023-01-30 19:59:42 +01:00

31 lines
1.3 KiB
Go

package app
import (
"github.com/twofas/2fas-server/internal/api/browser_extension/app/command"
"github.com/twofas/2fas-server/internal/api/browser_extension/app/query"
)
type Commands struct {
RegisterBrowserExtension command.RegisterBrowserExtensionHandler
RemoveAllBrowserExtensions command.RemoveAllBrowserExtensionsHandler
RemoveAllBrowserExtensionsDevices command.RemoveAllBrowserExtensionsDevicesHandler
UpdateBrowserExtension command.UpdateBrowserExtensionHandler
Request2FaToken command.Request2FaTokenHandler
Close2FaRequest command.Close2FaRequestHandler
RemoveExtensionPairedDevice command.RemoveExtensionPairedDeviceHandler
RemoveAllExtensionPairedDevices command.RemoveALlExtensionPairedDevicesHandler
StoreLogEvent command.StoreLogEventHandler
}
type Queries struct {
BrowserExtensionQuery query.BrowserExtensionQueryHandler
BrowserExtensionPairedDevicesQuery query.BrowserExtensionPairedMobileDevicesQueryHandler
BrowserExtensionPairedDeviceQuery query.BrowserExtensionPairedMobileDeviceQueryHandler
BrowserExtension2FaRequestQuery query.BrowserExtension2FaRequestQueryHandler
}
type Cqrs struct {
Commands Commands
Queries Queries
}