sinks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const KafkaType = "kafka"

KafkaType type of sink

View Source
const MaxRetry = 20

MaxRetry retry max

View Source
const OvhKafkaType = "ovhkafka"

OvhKafkaType type of sink

View Source
const StdoutType = "stdout"

StdoutType type of sink

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	*Sink
	// contains filtered or unexported fields
}

Kafka representation of kafka sink

func (*Kafka) GetInputChan

func (k *Kafka) GetInputChan() chan *events.LookatchEvent

GetInputChan return input channel attach to sink

func (*Kafka) Start

func (k *Kafka) Start(_ ...interface{}) error

Start kafka sink

type Sink

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

Sink representation of sink

type SinkI

type SinkI interface {
	Start(...interface{}) error
	GetInputChan() chan *events.LookatchEvent
}

SinkI sink interface

func New

func New(name string, sinkType string, conf *viper.Viper, stop chan error, eventChan chan *events.LookatchEvent) (SinkI, error)

New create new sink

type Stdout

type Stdout struct {
	*Sink
}

Stdout representation of sink

func (*Stdout) GetInputChan

func (s *Stdout) GetInputChan() chan *events.LookatchEvent

GetInputChan return input channel attach to sink

func (*Stdout) Start

func (s *Stdout) Start(i ...interface{}) (err error)

Start stdout sink

Jump to

Keyboard shortcuts

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