Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { AddEndpoint CommandHandler[command.AddEndpoint] CallWebhookEndpoint CommandHandler[command.CallWebhookEndpoint] SendMessage CommandHandler[command.SendMessage] // Applications CreateApplication CommandHandler[command.CreateApplication] // IAM SignUp CommandHandler[command.Signup] SignIn CommandHandlerWithResult[command.SignIn, *iam.Member] // Event types CreateEventType CommandHandler[command.CreateEventType] // Api keys CreateApiKey CommandHandlerWithResult[command.CreateApiKey, *domain.ApiKey] DestroyApiKey CommandHandler[command.DestroyApiKey] }
type CommandHandler ¶
type CommandHandlerWithResult ¶
type CommandHandlerWithResult[C, R any] interface { Execute(ctx context.Context, cmd C) (result R, err error) }
CommandHandlerWithResult To be used in rare occasions.
type Query ¶
type Query struct { AllApiKeys QueryHandler[query.AllApiKeys, []*domain.ApiKey] AllEnvironments QueryHandler[query.AllEnvironments, []*domain.Environment] }
Click to show internal directories.
Click to hide internal directories.