eventscontroller

package
v0.0.0-...-39992ae Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseEventsController

type BaseEventsController interface {
	CreateSpan(in *kafka.Message) opentracing.Span
	Listen(ctx context.Context, processRequest func(*kafka.Message))
	SendResponse(eventId string, data interface{}, span *opentracing.Span) error
	Logger() *zap.Logger
	ConsumerGroupId() string
}

func NewEventsController

func NewEventsController(
	s sender.Sender,
	tracer opentracing.Tracer,
	logger *zap.Logger,
	conf *config.Config,
) (BaseEventsController, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳