event

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller

type Marshaller interface {
	Marshal(s interface{}) ([]byte, error)
}

Marshaller defines a type for marshalling the requested object into a stream of bytes which can be sent to the kafka producer channel

type ReindexRequestedProducer

type ReindexRequestedProducer struct {
	Marshaller Marshaller
	Producer   kafka.IProducer
}

ReindexRequestedProducer is responsible for sending a ReindexRequested event object to the supplied kafka producer, as well as cleanly closing the producer and exposing health check information

func (*ReindexRequestedProducer) Checker

Checker is called by the healthcheck library to check the health state of this kafka producer instance

func (ReindexRequestedProducer) Close

Close is called when the service shuts down gracefully

func (ReindexRequestedProducer) ProduceReindexRequested

func (p ReindexRequestedProducer) ProduceReindexRequested(ctx context.Context, event models.ReindexRequested) error

ProduceReindexRequested produce a kafka message for an instance which has been successfully processed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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