injector

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 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