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 ¶
func NewAddIngredientWorker ¶
Click to show internal directories.
Click to hide internal directories.