processor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	RabbitConn         *amqp.Connection
	RabbitChannel      *amqp.Channel
	RabbitRoutingKey   string
	Config             *config.Configuration
	PubSubClient       *pubsub.Client
	PubSubSubscription *pubsub.Subscription

	ErrChan chan error
	Logger  *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewEqReceiptProcessor

func NewEqReceiptProcessor(ctx context.Context, appConfig *config.Configuration, errChan chan error) (*Processor, error)

func NewFulfilmentConfirmedProcessor added in v0.2.0

func NewFulfilmentConfirmedProcessor(ctx context.Context, appConfig *config.Configuration, errChan chan error) (*Processor, error)

func NewOfflineReceiptProcessor

func NewOfflineReceiptProcessor(ctx context.Context, appConfig *config.Configuration, errChan chan error) (*Processor, error)

func NewPpoUndeliveredProcessor

func NewPpoUndeliveredProcessor(ctx context.Context, appConfig *config.Configuration, errChan chan error) (*Processor, error)

func NewProcessor

func NewProcessor(ctx context.Context,
	appConfig *config.Configuration,
	pubSubProject string,
	pubSubSubscription string,
	routingKey string,
	messageConverter messageConverter,
	messageUnmarshaller messageUnmarshaller, errChan chan error) (*Processor, error)

func NewQmUndeliveredProcessor

func NewQmUndeliveredProcessor(ctx context.Context, appConfig *config.Configuration, errChan chan error) (*Processor, error)

func (*Processor) CloseRabbit

func (p *Processor) CloseRabbit()

func (*Processor) Consume

func (p *Processor) Consume(ctx context.Context)

func (*Processor) Process

func (p *Processor) Process(_ context.Context, msg *pubsub.Message)

Jump to

Keyboard shortcuts

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