Documentation ¶
Index ¶
- Variables
- func RegisterRunner(params RunnerParams) error
- type DLQProcessorTaskParams
- type Job
- type NodeCanaryTaskParams
- type PollingCanaryTaskParams
- type RunnerParams
- type StreamingCanaryTaskParams
- type Task
- func NewDLQProcessor(params DLQProcessorTaskParams) Task
- func NewNodeCanary(params NodeCanaryTaskParams) (Task, error)
- func NewPollingCanary(params PollingCanaryTaskParams) (Task, error)
- func NewStreamingCanary(params StreamingCanaryTaskParams) (Task, error)
- func NewWorkflowStatus(params WorkflowStatusTaskParams) (Task, error)
- type WorkflowStatusTaskParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSkipped = xerrors.New("skipped")
)
View Source
var Module = fx.Options( fx.Provide(fx.Annotated{ Group: "task", Target: NewDLQProcessor, }), fx.Provide(fx.Annotated{ Group: "task", Target: NewPollingCanary, }), fx.Provide(fx.Annotated{ Group: "task", Target: NewStreamingCanary, }), fx.Provide(fx.Annotated{ Group: "task", Target: NewNodeCanary, }), fx.Provide(fx.Annotated{ Group: "task", Target: NewWorkflowStatus, }), )
Functions ¶
func RegisterRunner ¶
func RegisterRunner(params RunnerParams) error
Types ¶
type DLQProcessorTaskParams ¶
type DLQProcessorTaskParams struct { fx.In fxparams.Params DLQ dlq.DLQ BlockchainClient client.Client `name:"slave"` BlobStorage blobstorage.BlobStorage MetaStorage metastorage.MetaStorage }
type NodeCanaryTaskParams ¶
type NodeCanaryTaskParams struct { fx.In fxparams.Params Config *config.Config Clients client.ClientParams BlockStorage storage.BlockStorage EventStorage storage.EventStorage FailoverManager endpoints.FailoverManager }
type PollingCanaryTaskParams ¶
type RunnerParams ¶
type Task ¶
type Task interface { Name() string Spec() string Parallelism() int64 DelayStartDuration() time.Duration Run(ctx context.Context) error Enabled() bool }
func NewDLQProcessor ¶
func NewDLQProcessor(params DLQProcessorTaskParams) Task
func NewNodeCanary ¶
func NewNodeCanary(params NodeCanaryTaskParams) (Task, error)
func NewPollingCanary ¶
func NewPollingCanary(params PollingCanaryTaskParams) (Task, error)
func NewStreamingCanary ¶
func NewStreamingCanary(params StreamingCanaryTaskParams) (Task, error)
func NewWorkflowStatus ¶
func NewWorkflowStatus(params WorkflowStatusTaskParams) (Task, error)
Click to show internal directories.
Click to hide internal directories.