worker

package
v0.0.0-...-50ba02b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PORT = 8081

Variables

Functions

func NewEventConsumer

func NewEventConsumer(trackingEventSvc service.EventService) sarama.ConsumerGroupHandler

Types

type App

type App interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

func NewApp

func NewApp(
	grpcServer *GrpcServer,
	consumerGroup *ConsumerGroup,
) App

type ConsumerGroup

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

func NewConsumerGroup

func NewConsumerGroup(
	postbackHandler sarama.ConsumerGroupHandler,
) *ConsumerGroup

func (*ConsumerGroup) Start

func (g *ConsumerGroup) Start(ctx context.Context) error

type EventConsumer

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

func (EventConsumer) Cleanup

func (EventConsumer) ConsumeClaim

func (EventConsumer) Setup

type GrpcServer

type GrpcServer struct {
	*grpc.Server
}

func NewGrpcServer

func NewGrpcServer(
	healthCheckHandler grpc_health_v1.HealthServer,
) *GrpcServer

Jump to

Keyboard shortcuts

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