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

36 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/mobile/app/command"
"github.com/twofas/2fas-server/internal/api/mobile/app/queries"
2022-12-31 10:22:38 +01:00
)
type Commands struct {
RegisterMobileDevice *command.RegisterMobileDeviceHandler
RemoveAllMobileDevices *command.RemoveAllMobileDevicesHandler
UpdateMobileDevice *command.UpdateMobileDeviceHandler
CreateNotification *command.CreateNotificationHandler
UpdateNotification *command.UpdateNotificationHandler
DeleteNotification *command.DeleteNotificationHandler
RemoveAllMobileNotifications *command.DeleteAllNotificationsHandler
PublishNotification *command.PublishNotificationHandler
PairMobileWithExtension *command.PairMobileWithExtensionHandler
RemovePairingWithExtension *command.RemoveDeviceExtensionHandler
Send2FaToken *command.Send2FaTokenHandler
}
type Queries struct {
MobileDeviceQuery *query.MobileDeviceQueryHandler
DeviceBrowserExtensionsQuery *query.DeviceBrowserExtensionsQueryHandler
DeviceBrowserExtension2FaRequestQuery *query.DeviceBrowserExtension2FaRequestQueryHandler
PairedBrowserExtensionQuery *query.PairedBrowserExtensionQueryHandler
MobileNotificationsQuery *query.MobileNotificationsQueryHandler
}
type Cqrs struct {
Commands Commands
Queries Queries
}