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 (
	TopicRecipesNew     = "recipes.new"
	TopicRecipesReq     = "recipes.req"
	TopicRecipes        = "recipes"
	TopicNutritionFacts = "nutritionfacts"
)
View Source
const (
	KeyCorrelationID = "correlation_id"
)

Variables

This section is empty.

Functions

func NewController

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

Types

type AddRecipeWorker

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

func (AddRecipeWorker) Process

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

func (AddRecipeWorker) Stop

func (w AddRecipeWorker) Stop() error

type FindRecipesWorker

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

func (FindRecipesWorker) Process

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

func (FindRecipesWorker) Stop

func (w FindRecipesWorker) Stop() error

type RecipeNutritionFactsWorker

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

func (RecipeNutritionFactsWorker) Process

func (RecipeNutritionFactsWorker) Stop

type Worker

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

func NewAddRecipeWorker

func NewAddRecipeWorker(recipeService service.Service, brokers []string) (Worker, error)

func NewFindRecipesWorker

func NewFindRecipesWorker(recipeService service.Service, brokers []string) (Worker, error)

func NewRecipeNutritionFactsWorker

func NewRecipeNutritionFactsWorker(recipeService service.Service, brokers []string) (Worker, error)

Jump to

Keyboard shortcuts

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