kafka

package
v0.0.0-...-eb5cc7f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	MessageType MessageType
	Value       interface{}
}

Message - message for Kafka

type MessageType

type MessageType int

MessageType - represents type for iota with Create, MultiCreate, Update, Delete operations

const (
	// Ping Producer
	Ping MessageType = iota
	// CreateJourney - Create Journey via Producer
	CreateJourney
	// MultiCreateJourney - Create several Journeys via Producer
	MultiCreateJourney
	// UpdateJourney - Update Journey via Producer
	UpdateJourney
	// DeleteJourney - Delete Journey via Producer
	DeleteJourney
)

type Producer

type Producer interface {
	Send(message Message) error
	Close() error
}

Producer - interface for work with Kafka

func NewProducer

func NewProducer(configuration *config.KafkaConfiguration) (Producer, error)

NewProducer - creates new Producer for work with Kafka

Jump to

Keyboard shortcuts

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