consumer

package
v0.0.0-...-6ad4eb5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaArgs

type KafkaArgs map[string]string

type KafkaConsumer

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

func NewKafkaConsumer

func NewKafkaConsumer(kafkaBrokers string, kwargs ...KafkaArgs) (*KafkaConsumer, error)

TODO add support for TLS Config

func (*KafkaConsumer) GetStream

func (sc *KafkaConsumer) GetStream(streamID string) (consumer.StreamConnection, error)

func (*KafkaConsumer) Start

func (sc *KafkaConsumer) Start() error

func (*KafkaConsumer) Stop

func (sc *KafkaConsumer) Stop() error

type KafkaStreamConnection

type KafkaStreamConnection struct {
	consumer.BaseStreamConnection
	// contains filtered or unexported fields
}

func NewKafkaStreamConnection

func NewKafkaStreamConnection(streamID string, streamType consts.StreamType, kafkaConsumer *cluster.Consumer, quality consts.Quality) *KafkaStreamConnection

func (*KafkaStreamConnection) AddConnection

func (sc *KafkaStreamConnection) AddConnection(quality consts.Quality, kafkaConsumer interface{}) error

func (*KafkaStreamConnection) AddDataToStream

func (sc *KafkaStreamConnection) AddDataToStream(data []byte, quality consts.Quality) error

func (*KafkaStreamConnection) Close

func (sc *KafkaStreamConnection) Close(quality consts.Quality) error

func (*KafkaStreamConnection) CloseAll

func (sc *KafkaStreamConnection) CloseAll() error

func (*KafkaStreamConnection) GetOutputChan

func (sc *KafkaStreamConnection) GetOutputChan(quality consts.Quality) (<-chan []byte, error)

func (*KafkaStreamConnection) GetQualities

func (sc *KafkaStreamConnection) GetQualities() []consts.Quality

func (*KafkaStreamConnection) HandleStream

func (sc *KafkaStreamConnection) HandleStream(quality consts.Quality) error

func (*KafkaStreamConnection) IsOpen

func (sc *KafkaStreamConnection) IsOpen() bool

Jump to

Keyboard shortcuts

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