Documentation ¶
Index ¶
Constants ¶
View Source
const ( // sink Possible Statuses SinkStatusOnError = "ON_ERROR" SinkStatusRunning = "RUNNING" SinkStatusWaiting = "WAITING" )
Possible Statuses
View Source
const KafkaType = "Kafka"
KafkaType type of sink
View Source
const MaxRetry = 20
MaxRetry retry max
View Source
const PulsarType = "Pulsar"
PulsarType 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
type KafkaGSSAPI ¶ added in v0.2.0
type KafkaMessage ¶ added in v0.2.0
type KafkaMessage struct { // The Kafka topic for this message. Topic string // The partitioning key for this message. Key string // The source offset of message Offset *events.Offset // The actual serialized message to store in Kafka. Value []byte }
kafkaSinkConfig representation of Kafka Message
type Pulsar ¶ added in v0.2.0
type Pulsar struct { *Sink // contains filtered or unexported fields }
Pulsar representation of Pulsar sink
func (*Pulsar) GetInputChan ¶ added in v0.2.0
func (p *Pulsar) GetInputChan() chan events.LookatchEvent
GetInputChan return the input channel attached to this sink
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink representation of sink
func (*Sink) GetCommitChan ¶ added in v0.2.0
func (s *Sink) GetCommitChan() chan interface{}
GetCommitChan return the commit channel attached to this sink
func (*Sink) GetInputChan ¶ added in v0.2.0
func (s *Sink) GetInputChan() chan events.LookatchEvent
GetInputChan return input channel attach to sink
func (*Sink) SendCommit ¶ added in v0.2.0
func (s *Sink) SendCommit(payload interface{})
SendCommit send a commit message into the commit channel of this sink
type SinkI ¶
type SinkI interface { Start(...interface{}) error GetInputChan() chan events.LookatchEvent GetCommitChan() chan interface{} }
SinkI sink interface
Click to show internal directories.
Click to hide internal directories.