taskcmd

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITaskCmd

type ITaskCmd interface {
	TaskExecute(commandContext engine.Context, entity entitymanager.TaskEntity) (interface{}, error)
}

type NeedsActiveTaskCmd

type NeedsActiveTaskCmd struct {
	ITaskCmd
	Ctx           context.Context
	TaskId        string
	Transactional bool
}

func (NeedsActiveTaskCmd) Context

func (needsActiveTaskCmd NeedsActiveTaskCmd) Context() context.Context

func (NeedsActiveTaskCmd) Execute

func (needsActiveTaskCmd NeedsActiveTaskCmd) Execute(commandContext engine.Context) (interface{}, error)

func (NeedsActiveTaskCmd) IsTransactional

func (needsActiveTaskCmd NeedsActiveTaskCmd) IsTransactional() bool

type Options

type Options func(*NeedsActiveTaskCmd)

func WithContext

func WithContext(ctx context.Context) Options

func WithTransactional

func WithTransactional(transactional bool) Options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL