server

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 9 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     lazy.Lazy[*redis.Client]
	Consumers []lazy.Lazy[consumer.Consumer] `group:"queue_consumers"`
	Options   []Option                       `group:"queue_server_options"`
	Logger    *zap.SugaredLogger
}

type Result

type Result struct {
	fx.Out
	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