Documentation ¶
Index ¶
- type Execution
- func (e *Execution) Execute(processHash, instanceHash, eventHash, parentHash hash.Hash, stepID string, ...) (executionHash hash.Hash, err error)
- func (e *Execution) Get(hash hash.Hash) (*execution.Execution, error)
- func (e *Execution) GetStream(f *Filter) *Listener
- func (e *Execution) Listen(instanceHash hash.Hash, f *Filter) (*Listener, error)
- func (e *Execution) Update(executionHash hash.Hash, outputs *types.Struct, reterr error) error
- type Filter
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execution ¶
type Execution struct {
// contains filtered or unexported fields
}
Execution exposes execution APIs of MESG.
func New ¶
func New(ps *pubsub.PubSub, service servicesdk.Service, instance *instancesdk.Instance, process *processesdk.Process, execDB database.ExecutionDB) *Execution
New creates a new Execution SDK with given options.
func (*Execution) Execute ¶
func (e *Execution) Execute(processHash, instanceHash, eventHash, parentHash hash.Hash, stepID string, taskKey string, inputData *types.Struct, tags []string) (executionHash hash.Hash, err error)
Execute executes a task tasKey with inputData and tags for service serviceID.
type Filter ¶
type Filter struct { Statuses []execution.Status InstanceHash hash.Hash TaskKey string Tags []string }
Filter store fileds for matching executions.
func (*Filter) HasTaskKey ¶
HasTaskKey returns true if task key is set to specified value.
Click to show internal directories.
Click to hide internal directories.