tasks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(t TaskType, fn interface{}, opts ...funcr.Options)

func Register

func Register(t TaskType, fn interface{}, opts ...funcr.Options) error

fn: func(ctx context.Context, req NON_POINTER_STRUCT) error {...}

Types

type TaskDef

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

func Get

func Get(t TaskType) (TaskDef, bool)

func (TaskDef) Fn

func (t TaskDef) Fn() interface{}

func (TaskDef) NewObj

func (t TaskDef) NewObj() any

func (TaskDef) RespLoggerOpts

func (t TaskDef) RespLoggerOpts() *funcr.Options

func (TaskDef) TaskType

func (t TaskDef) TaskType() TaskType

type TaskType

type TaskType string

Jump to

Keyboard shortcuts

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