core_concept

package
v1.1.72 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskContext

type TaskContext struct {
	Ctx        context.Context
	Err        chan error
	CancelTask func()
}

func NewTaskContext

func NewTaskContext(ctx context.Context) *TaskContext

func (*TaskContext) Cancel

func (ctx *TaskContext) Cancel()

func (*TaskContext) GetCtx

func (ctx *TaskContext) GetCtx() context.Context

func (*TaskContext) SetError

func (ctx *TaskContext) SetError(err error)

func (*TaskContext) SetErrorCustom

func (ctx *TaskContext) SetErrorCustom(err error, handler func(event *zerolog.Event) *zerolog.Event)

Jump to

Keyboard shortcuts

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