2fas-server/internal/api/browser_extension/app/app.go

31 lines
1.3 KiB
Go
Raw Normal View History

2022-12-31 10:22:38 +01:00
package app
import (
2023-01-30 19:59:42 +01:00
"github.com/twofas/2fas-server/internal/api/browser_extension/app/command"
"github.com/twofas/2fas-server/internal/api/browser_extension/app/query"
2022-12-31 10:22:38 +01:00
)
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
}