worker

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: GPL-3.0 Imports: 13 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 *config.Config,
	log *zap.Logger,
) (*Worker, error)

func (*Worker) EncryptWithAge added in v0.4.3

func (wrk *Worker) EncryptWithAge(
	m *message.Message,
	recipients []string,
	title bool,
	message bool,
	attachment bool,
) error

func (*Worker) HandleMessage

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

func (*Worker) Run

func (wrk *Worker) Run() error

func (*Worker) Shutdown

func (wrk *Worker) Shutdown() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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