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 DataSource ¶ added in v0.5.9
type DataSource interface { Network() network.Network State() json.RawMessage Start(ctx context.Context, tasksChan chan<- *Tasks, errorChan chan<- error) }
DataSource is the interface that wraps the basic methods of a data protocol.
type DataSourceFilter ¶ added in v0.5.9
type DataSourceFilter 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 DataSourceFilter of the worker(network, state, start logics, etc.). Filter() DataSourceFilter // 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.