asynctaskext

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncTaskExt

type AsyncTaskExt struct {
	NS string
	// contains filtered or unexported fields
}

func (*AsyncTaskExt) Application

func (t *AsyncTaskExt) Application() *gobay.Application

func (*AsyncTaskExt) Close

func (t *AsyncTaskExt) Close() error

func (*AsyncTaskExt) Init

func (t *AsyncTaskExt) Init(app *gobay.Application) error

func (*AsyncTaskExt) Object

func (t *AsyncTaskExt) Object() interface{}

func (*AsyncTaskExt) RegisterWorkerHandler

func (t *AsyncTaskExt) RegisterWorkerHandler(name string, handler interface{}) error

RegisterWorkerHandler add task handler to worker to process task messages

func (*AsyncTaskExt) RegisterWorkerHandlers added in v0.8.0

func (t *AsyncTaskExt) RegisterWorkerHandlers(handlers map[string]interface{}) error

RegisterWorkerHandlers add task handlers to worker to process task messages

func (*AsyncTaskExt) SendTask

func (t *AsyncTaskExt) SendTask(sign *tasks.Signature) (*result.AsyncResult, error)

SendTask publish task messages to broker

func (*AsyncTaskExt) StartWorker

func (t *AsyncTaskExt) StartWorker(queue string, concurrency int) error

StartWorker start a worker that consume task messages for queue

Jump to

Keyboard shortcuts

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