tasks

package
v0.0.0-...-984cbf5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainTask

type ChainTask struct {
	// contains filtered or unexported fields
}

func NewChainTask

func NewChainTask(scheduler tasks.Scheduler) *ChainTask

func (*ChainTask) Cancel

func (t *ChainTask) Cancel(
	ctx context.Context,
	execCtx tasks.ExecutionContext,
) error

func (*ChainTask) GetMetadata

func (t *ChainTask) GetMetadata(
	ctx context.Context,
	taskID string,
) (proto.Message, error)

func (*ChainTask) GetResponse

func (t *ChainTask) GetResponse() proto.Message

func (*ChainTask) Load

func (t *ChainTask) Load(request, state []byte) error

func (*ChainTask) Run

func (t *ChainTask) Run(
	ctx context.Context,
	execCtx tasks.ExecutionContext,
) error

func (*ChainTask) Save

func (t *ChainTask) Save() ([]byte, error)

type PanicTask

type PanicTask struct{}

func NewPanicTask

func NewPanicTask() *PanicTask

func (*PanicTask) Cancel

func (t *PanicTask) Cancel(
	ctx context.Context,
	execCtx tasks.ExecutionContext,
) error

func (*PanicTask) GetMetadata

func (t *PanicTask) GetMetadata(
	ctx context.Context,
	taskID string,
) (proto.Message, error)

func (*PanicTask) GetResponse

func (t *PanicTask) GetResponse() proto.Message

func (*PanicTask) Load

func (t *PanicTask) Load(request, state []byte) error

func (*PanicTask) Run

func (t *PanicTask) Run(
	ctx context.Context,
	execCtx tasks.ExecutionContext,
) error

func (*PanicTask) Save

func (t *PanicTask) Save() ([]byte, error)

Jump to

Keyboard shortcuts

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