queue

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Binding = "goravel.queue"
View Source
const DriverRedis string = "redis"
View Source
const DriverSync string = "sync"

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func NewApplication

func NewApplication(config configcontract.Config) *Application

func (*Application) Chain

func (app *Application) Chain(jobs []queue.Jobs) queue.Task

func (*Application) GetJobs

func (app *Application) GetJobs() []queue.Job

func (*Application) Job

func (app *Application) Job(job queue.Job, args []queue.Arg) queue.Task

func (*Application) Register

func (app *Application) Register(jobs []queue.Job)

func (*Application) Worker

func (app *Application) Worker(args *queue.Args) queue.Worker

type Config added in v1.10.2

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

func NewConfig added in v1.10.2

func NewConfig(config configcontract.Config) *Config

func (*Config) DefaultConnection added in v1.10.2

func (r *Config) DefaultConnection() string

func (*Config) Driver added in v1.10.2

func (r *Config) Driver(connection string) string

func (*Config) Queue added in v1.10.2

func (r *Config) Queue(connection, queue string) string

func (*Config) Redis added in v1.10.2

func (r *Config) Redis(queueConnection string) (dsn string, database int, queue string)

type Machinery added in v1.10.2

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

func NewMachinery added in v1.10.2

func NewMachinery(config *Config) *Machinery

func (*Machinery) Server added in v1.10.2

func (m *Machinery) Server(connection string, queue string) (*machinery.Server, error)

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (receiver *ServiceProvider) Boot(app foundation.Application)

func (*ServiceProvider) Register

func (receiver *ServiceProvider) Register(app foundation.Application)

type Task added in v1.10.2

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

func NewChainTask added in v1.10.2

func NewChainTask(config *Config, jobs []queue.Jobs) *Task

func NewTask added in v1.10.2

func NewTask(config *Config, job queue.Job, args []queue.Arg) *Task

func (*Task) Delay added in v1.10.2

func (receiver *Task) Delay(delay time.Time) queue.Task

func (*Task) Dispatch added in v1.10.2

func (receiver *Task) Dispatch() error

func (*Task) DispatchSync added in v1.10.2

func (receiver *Task) DispatchSync() error

func (*Task) OnConnection added in v1.10.2

func (receiver *Task) OnConnection(connection string) queue.Task

func (*Task) OnQueue added in v1.10.2

func (receiver *Task) OnQueue(queue string) queue.Task

type Worker added in v1.10.2

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

func NewWorker added in v1.10.2

func NewWorker(config *Config, concurrent int, connection string, jobs []queue.Job, queue string) *Worker

func (*Worker) Run added in v1.10.2

func (receiver *Worker) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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