mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 20:20:19 +01:00
36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
|
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
|
||
|
}
|