kafka

package
v0.0.0-...-1afb120 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicIngredientsNew = "ingredients.new"
	TopicIngredientsReq = "ingredients.req"
	TopicIngredients    = "ingredients"
)
View Source
const (
	KeyCorrelationID = "correlation_id"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ingredientService service.Service, kafkaBrokerURLs string) (controller.Controller, error)

Types

type AddIngredientWorker

type AddIngredientWorker struct {
	// contains filtered or unexported fields
}

func (AddIngredientWorker) Process

func (w AddIngredientWorker) Process(ctx context.Context) error

func (AddIngredientWorker) Stop

func (w AddIngredientWorker) Stop() error

type FindIngredientsWorker

type FindIngredientsWorker struct {
	// contains filtered or unexported fields
}

func (FindIngredientsWorker) Process

func (w FindIngredientsWorker) Process(ctx context.Context) error

func (FindIngredientsWorker) Stop

func (w FindIngredientsWorker) Stop() error

type Worker

type Worker interface {
	Process(ctx context.Context) error
	Stop() error
}

func NewAddIngredientWorker

func NewAddIngredientWorker(ingredientService service.Service, brokers []string) (Worker, error)

func NewFindIngredientsWorker

func NewFindIngredientsWorker(ingredientService service.Service, brokers []string) (Worker, error)

Jump to

Keyboard shortcuts

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