Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTaskTraceAttributes ¶ added in v0.3.10
Types ¶
type Checkpoint ¶
type CheckpointTransformer ¶
type CheckpointTransformer interface {
Import(checkpoint *Checkpoint) error
Export() (*Checkpoint, error)
}
type SourceFilter ¶
type SourceFilter interface{}
type Tasks ¶ added in v0.3.10
type Tasks struct {
Tasks []Task
// contains filtered or unexported fields
}
type Worker ¶
type Worker interface {
// Name is the name of the worker.
Name() string
// Platform returns the display name of the worker as the `platform` in the final Activity response.
Platform() string
// Network returns all networks where the worker runs on and displayed as the `network` in the final Activity response.
Network() []network.Network
// Tags the possible `tag` of the worker, displayed in the final Activity response.
Tags() []tag.Tag
// Types the possible `type` of the worker, displayed in the final Activity response.
Types() []schema.Type
// Filter the SourceFilter of the worker(network, state, start logics, etc.).
Filter() SourceFilter
// Match the matching logic of worker and returns if the task is matched
Match(ctx context.Context, task Task) (bool, error)
// Transform the core logic of the worker and returns the Activity.
Transform(ctx context.Context, task Task) (*activityx.Activity, error)
}
Click to show internal directories.
Click to hide internal directories.