stream

package
v0.0.0-...-aad55e1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 9 Imported by: 0

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

type ScheduleMessageKafka struct {
	Booking                    string `json:"booking"`
	PetId                      int    `json:"pet_id"`
	ServiceEmployeeAttentionId int    `json:"service_employee_attention_id"`
}

Jump to

Keyboard shortcuts

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