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 (
"github.com/2fas/api/internal/api/mobile/app/command"
"github.com/2fas/api/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
}