worker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix      = "recurring.notifier"
	ServiceName = "worker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message proto.Message

type Worker

type Worker struct {
	provider.LMT
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, set provider.AwareSet, cfg *config.Config, services dispatcher.Services) (*Worker, error)

func Provider

func Provider(ctx context.Context, set provider.AwareSet, cfg *config.Config, services dispatcher.Services) (*Worker, func(), error)

func (*Worker) Process

func (m *Worker) Process(subscription *recurringpb.Subscription, d amqp.Delivery) error

func (*Worker) RunWorker

func (m *Worker) RunWorker() error

Jump to

Keyboard shortcuts

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