Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { QueriesIn ports.IncomingQueryPort EventsIn ports.IncomingEventPort Storage ports.ProviderStoragePort UserSvc ports.UserService // contains filtered or unexported fields }
Domain is the base struct for the domain service
type EventHandlers ¶
type EventHandlers struct {
// contains filtered or unexported fields
}
EventHandlers implements IncomingEventHandlers
func (*EventHandlers) Create ¶
func (h *EventHandlers) Create(request service.ProviderRequest, eventOut ports.OutgoingEventPort)
Create creates a Provider
func (*EventHandlers) Delete ¶
func (h *EventHandlers) Delete(request service.ProviderRequest, eventOut ports.OutgoingEventPort)
Delete deletes the Provider
func (*EventHandlers) Update ¶
func (h *EventHandlers) Update(request service.ProviderRequest, eventOut ports.OutgoingEventPort)
Update updates the Provider
type QueryHandlers ¶
type QueryHandlers struct {
// contains filtered or unexported fields
}
QueryHandlers implements IncomingQueryHandlers
func (*QueryHandlers) Get ¶
func (h *QueryHandlers) Get(ctx context.Context, actor service.Actor, id common.ID) service.ProviderResponse
Get retrieves the Provider
func (*QueryHandlers) List ¶
func (h *QueryHandlers) List(ctx context.Context, actor service.Actor) service.ProviderListModel
List retrieves all providers of the user
Click to show internal directories.
Click to hide internal directories.