workers

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conf config.Faktory) (*faktory.Client, error)

NewClient returns a new faktory Client.

It sets the FAKTORY_URL variable globally: for this reason, you cannot create multiple faktory managers or clients pointing to different servers from the same instance of the program.

func NewFaktoryLogger

func NewFaktoryLogger(level zerolog.Level) faktory_worker.Logger

NewFaktoryLogger returns a new logger for Faktory Manager.

The logger implementation uses zerolog under the hood. It is initialized with a logger derived from the global zerolog Logger, just setting the loglevel to the given value.

func NewManager

func NewManager(conf config.Faktory) (*faktory_worker.Manager, error)

NewManager instantiates and prepares a new faktory Manager.

It also sets the FAKTORY_URL variable globally: for this reason, you cannot create multiple faktory managers or clients pointing to different servers from the same instance of the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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