Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { Create CreateHandler Delete DeleteHandler Update UpdateHandler }
func NewCommands ¶
func NewCommands(repo workflow.Repository, workflowReadModel workflowquery.ReadModel, factory *workflow.Factory, workspaceReadModel workspace.WorkspaceReadModel, bus eventbus.EventBus, womtoolPath string) *Commands
type CreateCommand ¶
type CreateHandler ¶
type CreateHandler interface {
Handle(context.Context, *CreateCommand) (string, error)
}
func NewCreateHandler ¶
func NewCreateHandler(service workflow.Service, workflowReadModel workflowquery.ReadModel, workspaceReadModel workspacequery.WorkspaceReadModel) CreateHandler
type DeleteCommand ¶
type DeleteHandler ¶
type DeleteHandler interface {
Handle(ctx context.Context, cmd *DeleteCommand) error
}
func NewDeleteHandler ¶
func NewDeleteHandler(workflowService workflow.Service, workspaceReadModel workspacequery.WorkspaceReadModel) DeleteHandler
type UpdateCommand ¶
type UpdateHandler ¶
type UpdateHandler interface {
Handle(ctx context.Context, cmd *UpdateCommand) error
}
func NewUpdateHandler ¶
func NewUpdateHandler(workflowService workflow.Service, workflowReadModel workflowquery.ReadModel, workspaceReadModel workspacequery.WorkspaceReadModel) UpdateHandler
Click to show internal directories.
Click to hide internal directories.