consumer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	ConsumeMessages() error
}

type EcflowClientConsumer

type EcflowClientConsumer struct {
	Source      RabbitMQSource
	Target      ElasticSearchTarget
	WorkerCount int
	BulkSize    int
	Debug       bool
}

func (*EcflowClientConsumer) ConsumeMessages

func (s *EcflowClientConsumer) ConsumeMessages() error

type ElasticSearchTarget

type ElasticSearchTarget struct {
	Server string
}

type KafkaPrinterConsumer added in v0.6.0

type KafkaPrinterConsumer struct {
	Source       KafkaSource
	WorkerCount  int
	ConsumerName string
	Debug        bool
}

func (*KafkaPrinterConsumer) ConsumeMessages added in v0.6.0

func (s *KafkaPrinterConsumer) ConsumeMessages() error

type KafkaSource added in v0.6.0

type KafkaSource struct {
	Brokers []string
	Topic   string
	Offset  int64

	Reader *kafka.Reader
}

func (*KafkaSource) CreateConnection added in v0.6.0

func (source *KafkaSource) CreateConnection() error

type PredictConsumer added in v0.4.0

type PredictConsumer struct {
	Source      RabbitMQSource
	Target      ElasticSearchTarget
	WorkerCount int
	BulkSize    int
	Debug       bool
}

func (*PredictConsumer) ConsumeMessages added in v0.4.0

func (s *PredictConsumer) ConsumeMessages() error

type PrinterConsumer

type PrinterConsumer struct {
	Source       RabbitMQSource
	WorkerCount  int
	ConsumerName string
	Debug        bool
}

func (*PrinterConsumer) ConsumeMessages

func (s *PrinterConsumer) ConsumeMessages() error

type ProductionConsumer

type ProductionConsumer struct {
	Source      RabbitMQSource
	Target      ElasticSearchTarget
	WorkerCount int
	BulkSize    int
	Debug       bool
}

func (*ProductionConsumer) ConsumeMessages

func (s *ProductionConsumer) ConsumeMessages() error

type RabbitMQSource

type RabbitMQSource struct {
	Server       string
	Exchange     string
	Topics       []string
	Queue        string
	WriteTimeout time.Duration
	// contains filtered or unexported fields
}

func (*RabbitMQSource) CreateConnection

func (source *RabbitMQSource) CreateConnection() error

Jump to

Keyboard shortcuts

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