Documentation
¶
Index ¶
- type Error
- type Processor
- func (p *Processor) CloseRabbit(errOk bool)
- func (p *Processor) Consume()
- func (p *Processor) Initialise(ctx context.Context) (err error)
- func (p *Processor) Process(_ context.Context, msg *pubsub.Message)
- func (p *Processor) Publish(ctx context.Context, channel RabbitChannel)
- func (p *Processor) ReportError(err error)
- func (p *Processor) Restart(ctx context.Context)
- func (p *Processor) Stop()
- func (p *Processor) StopPublishers()
- type RabbitChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
Name string
RabbitConn *amqp.Connection
RabbitRoutingKey string
RabbitChannels []RabbitChannel
OutboundMsgChan chan *models.OutboundMessage
Config *config.Configuration
PubSubProject string
PubSubSubscriptionId string
PubSubClient *pubsub.Client
PubSubSubscription *pubsub.Subscription
ErrChan chan Error
Logger *zap.SugaredLogger
Context context.Context
Cancel context.CancelFunc
// contains filtered or unexported fields
}
func NewEqReceiptProcessor ¶
func NewProcessor ¶
func (*Processor) CloseRabbit ¶
func (*Processor) ReportError ¶
func (*Processor) StopPublishers ¶
func (p *Processor) StopPublishers()
Click to show internal directories.
Click to hide internal directories.