Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kafka ¶
type Kafka struct { kafkaconsumerinterface.Consumer kafkaproducerinterface.Producer // contains filtered or unexported fields }
func New ¶
func New( ctx context.Context, cfg kafkaconfiginterface.Configurator, lgr logger.Logger, errorHandler kafkaasyncproducerhandler.ErrorHandler, successHandler kafkaasyncproducerhandler.SuccessHandler, certsFS ...embed.FS, ) (kafka *Kafka, err error)
New method creates a new Kafka instance.
param: errorHandler - is optional callback which used with async provider. param: successHandler - is optional callback which used with async provider.
Click to show internal directories.
Click to hide internal directories.