injector

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeKafkaConsumer

func MakeKafkaConsumer(endpoints Endpoints, logger log.Logger, schemaRegistry *schema_registry.SchemaRegistry, kafkaConfig *kafka.Config) (kafka.Consumer, error)

Types

type Endpoints

type Endpoints interface {
	Insert() endpoint.Endpoint
}

func MakeEndpoints

func MakeEndpoints(svc Service) Endpoints

type Service

type Service interface {
	Insert(records []*models.Record) error
	ReadinessCheck() bool
}

func NewService

func NewService(logger log.Logger, metrics metrics.MetricsPublisher) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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