server

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromZap

func NewFromZap(l *zap.SugaredLogger) asynq.Logger

Types

type Option

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

type Params

type Params struct {
	fx.In
	Config    queue.Config
	Redis     *redis.Client
	Consumers []consumer.Consumer `group:"queue_consumers"`
	Options   []Option            `group:"queue_server_options"`
	Logger    *zap.SugaredLogger
}

type Result

type Result struct {
	fx.Out
	Server   *asynq.Server
	ServeMux *asynq.ServeMux
	Worker   worker.Worker `group:"workers"`
}

func New

func New(p Params) (Result, error)

Jump to

Keyboard shortcuts

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