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

36 lines
1.3 KiB
Go

package app
import (
"github.com/twofas/2fas-server/internal/api/mobile/app/command"
"github.com/twofas/2fas-server/internal/api/mobile/app/queries"
)
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
}