Documentation ¶
Index ¶
- type Domain
- type EventHandlers
- func (h *EventHandlers) Create(ctx context.Context, request cacao_common_service.WorkspaceModel, ...)
- func (h *EventHandlers) Delete(ctx context.Context, request cacao_common_service.WorkspaceModel, ...)
- func (h *EventHandlers) Update(ctx context.Context, request cacao_common_service.WorkspaceModel, ...)
- type QueryHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { Storage ports.PersistentStoragePort QueryIn ports.IncomingQueryPort EventIn ports.IncomingEventPort // contains filtered or unexported fields }
Domain is the base struct for the domain service
type EventHandlers ¶
type EventHandlers struct { Storage ports.PersistentStoragePort EventOut ports.OutgoingEventPort TimeSrc func() time.Time }
EventHandlers implements IncomingEventPort
func (*EventHandlers) Create ¶
func (h *EventHandlers) Create(ctx context.Context, request cacao_common_service.WorkspaceModel, sink ports.OutgoingEventPort)
Create creates a workspace
func (*EventHandlers) Delete ¶
func (h *EventHandlers) Delete(ctx context.Context, request cacao_common_service.WorkspaceModel, sink ports.OutgoingEventPort)
Delete deletes the workspace
func (*EventHandlers) Update ¶
func (h *EventHandlers) Update(ctx context.Context, request cacao_common_service.WorkspaceModel, sink ports.OutgoingEventPort)
Update updates the workspace
type QueryHandlers ¶
type QueryHandlers struct {
Storage ports.PersistentStoragePort
}
QueryHandlers implements ports.IncomingQueryHandlers
func (*QueryHandlers) Get ¶
func (h *QueryHandlers) Get(ctx context.Context, request cacao_common_service.WorkspaceModel) cacao_common_service.WorkspaceModel
Get retrieves the workspace
func (*QueryHandlers) List ¶
func (h *QueryHandlers) List(ctx context.Context, request cacao_common_service.Session) cacao_common_service.WorkspaceListModel
List retrieves all workspaces of the user
Click to show internal directories.
Click to hide internal directories.