worker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

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

func New

func New(cfg *lib.Config, log *zap.Logger) (*Worker, error)

func (*Worker) ExecuteXMPP

func (wrk *Worker) ExecuteXMPP(args map[string]string, m messages.Request) error

func (*Worker) HandleMessage

func (wrk *Worker) HandleMessage(ctx context.Context, t *asynq.Task) error

func (*Worker) Run

func (wrk *Worker) Run()

func (*Worker) Shutdown

func (wrk *Worker) Shutdown() error

Jump to

Keyboard shortcuts

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