Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScheduleKafkaConsumerErrorToReadMessage = "error to read message from schedule kafka consumer" ScheduleKafkaConsumerErrorTimeoutToReadMessage = "timeout error to read message from schedule kafka consumer" ScheduleKafkaConsumerSuccessToConsumer = "success to consumer" ScheduleKafkaErrorToStartConsumer = "error to start consumer from kafka" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleKafkaConsumer ¶
type ScheduleKafkaConsumer struct { LoggerSugar *zap.SugaredLogger ScheduleService input.IScheduleService KafkaClient *kgo.Client }
func NewScheduleKafkaClient ¶
func NewScheduleKafkaClient(loggerSugar *zap.SugaredLogger, scheduleService input.IScheduleService, bootstrapServer string, groupID string, autoOffsetReset string, topic string) ScheduleKafkaConsumer
func (*ScheduleKafkaConsumer) ConsumerMessages ¶
func (schedule *ScheduleKafkaConsumer) ConsumerMessages()
type ScheduleMessageKafka ¶
Click to show internal directories.
Click to hide internal directories.