sink

package
v0.0.0-...-195e12e Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanSink

type ChanSink struct {
	Out chan interface{}
}

ChanSink transmitts data to chan

func NewChanSink

func NewChanSink(out chan interface{}) *ChanSink

NewChanSink returns new ChanSink instance

func (*ChanSink) In

func (ch *ChanSink) In() chan<- interface{}

In returns channel for receiving data

type ConnType

type ConnType string

ConnType connection type

type FileSink

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

FileSink stores items to file

func NewFileSink

func NewFileSink(fileName string) *FileSink

NewFileSink returns new FileSink instance

func (*FileSink) In

func (fs *FileSink) In() chan<- interface{}

In returns channel for receiving data

type NatsSink

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

func NewNatsSink

func NewNatsSink(addr string, topic string) (*NatsSink, error)

func (*NatsSink) In

func (ns *NatsSink) In() chan<- interface{}

In returns channel for receiving data

type NetSink

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

NetSink downstreams input events to a network soket

func NewNetSink

func NewNetSink(connType ConnType, address string) (*NetSink, error)

NewNetSink creates a new NetSink

func (*NetSink) In

func (ns *NetSink) In() chan<- interface{}

In returns channel for receiving data

type NothingSink

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

IgnoreSink sends items to /dev/null

func NewNothingSink

func NewNothingSink() *NothingSink

NewIgnoreSink returns new IgnoreSink instance

func (*NothingSink) In

func (n *NothingSink) In() chan<- interface{}

In returns channel for receiving data

type NsqSink

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

func NewNsqSink

func NewNsqSink(url string, conf *nsq.Config) (*NsqSink, error)

func (*NsqSink) In

func (ns *NsqSink) In() chan<- interface{}

In returns channel for receiving data

type PgSink

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

func NewPgSink

func NewPgSink(connStr string) (*PgSink, error)

func (*PgSink) In

func (pg *PgSink) In() chan<- interface{}

In returns channel for receiving data

type PulsarSink

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

PulsarSink connector

func NewPulsarSink

func NewPulsarSink(clientOptions *pulsar.ClientOptions, producerOptions *pulsar.ProducerOptions) *PulsarSink

NewPulsarSink creates a new PulsarSink

func (*PulsarSink) In

func (ps *PulsarSink) In() chan<- interface{}

In returns channel for receiving data

type RedisSink

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

RedisSink implements Redis Pub/Sub Sink

func NewRedisSink

func NewRedisSink(config *redis.Options, channel string) *RedisSink

NewRedisSink returns new RedisSink instance

func (*RedisSink) In

func (rs *RedisSink) In() chan<- interface{}

In returns channel for receiving data

type StdoutSink

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

IgnoreSink sends items to /dev/null

func NewStdoutSink

func NewStdoutSink() *StdoutSink

NewIgnoreSink returns new IgnoreSink instance

func (*StdoutSink) In

func (ignore *StdoutSink) In() chan<- interface{}

In returns channel for receiving data

Jump to

Keyboard shortcuts

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