queue

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueDI

type QueueDI interface {
	NewServ() (QueueServ, error)
}

type QueueServ

type QueueServ interface {
	RegisterTasks(workers ...Worker) error
	StartWorker() error
	SendTask(taskName string, args []tasks.Arg) (*tasks.TaskState, error)
}

type RabbitMQConf

type RabbitMQConf struct {
	*amqpConf.Config `yaml:",inline"`
}

func (*RabbitMQConf) NewServ

func (conf *RabbitMQConf) NewServ() (QueueServ, error)

type Worker

type Worker interface {
	Register(tasks map[string]interface{})
	Enable() bool
}

Jump to

Keyboard shortcuts

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