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 CommandHandlerWithResult[command.CreateApplication, domain.ApplicationID] // IAM SignUp CommandHandler[command.Signup] SignIn CommandHandlerWithResult[command.SignIn, *iam.Member] // Event types CreateEventType CommandHandlerWithResult[command.CreateEventType, domain.EventTypeID] // 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] // Applications Application QueryHandler[query.Application, *domain.Application] AllApplications QueryHandler[query.AllApplications, query.Paginated[[]domain.Application]] // Event types AllEventTypes QueryHandler[query.AllEventTypes, query.Paginated[[]domain.EventType]] EventType QueryHandler[query.EventType, *domain.EventType] }
Click to show internal directories.
Click to hide internal directories.