Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanSource ¶
type ChanSource struct {
// contains filtered or unexported fields
}
ChanSource streams data from chan
func NewChanSource ¶
func NewChanSource(in chan interface{}) *ChanSource
NewChanSource returns new ChanSource instance
func (*ChanSource) Out ¶
func (cs *ChanSource) Out() <-chan interface{}
Out returns channel for sending data
type FileSource ¶
type FileSource struct {
// contains filtered or unexported fields
}
FileSource streams data from file system
func NewFileSource ¶
func NewFileSource(fileName string) *FileSource
NewFileSource returns new FileSource instance
func (*FileSource) Out ¶
func (fs *FileSource) Out() <-chan interface{}
Out returns channel for sending data
type MqttSource ¶
type MqttSource struct {
// contains filtered or unexported fields
}
func NewMqttSource ¶
func NewMqttSource(config *MQTT.ClientOptions, topic string) (*MqttSource, error)
获取新的mqtt源
func (*MqttSource) Out ¶
func (ms *MqttSource) Out() <-chan interface{}
Out returns channel for sending data
type NatsSource ¶
type NatsSource struct {
// contains filtered or unexported fields
}
func NewNatsSource ¶
func NewNatsSource(addr string, topic string) (*NatsSource, error)
func (*NatsSource) Out ¶
func (ns *NatsSource) Out() <-chan interface{}
Out returns channel for sending data
type NetSource ¶
type NetSource struct {
// contains filtered or unexported fields
}
NetSource network socket connector
func NewNetSource ¶
NewNetSource creates a new NetSource
type NsqSource ¶
type NsqSource struct {
// contains filtered or unexported fields
}
type PgSource ¶
type PgSource struct {
// contains filtered or unexported fields
}
func NewPgSource ¶
type PulsarSource ¶
type PulsarSource struct {
// contains filtered or unexported fields
}
PulsarSource connector
func NewPulsarSource ¶
func NewPulsarSource(clientOptions *pulsar.ClientOptions, consumerOptions *pulsar.ConsumerOptions) (*PulsarSource, error)
NewPulsarSource creates a new PulsarSource
func (*PulsarSource) Out ¶
func (ps *PulsarSource) Out() <-chan interface{}
Out returns channel for sending data
type RedisSource ¶
type RedisSource struct {
// contains filtered or unexported fields
}
RedisSource implements Redis Pub/Sub Source
func NewRedisSource ¶
func NewRedisSource(config *redis.Options, channel string) (*RedisSource, error)
NewRedisSource returns new RedisSource instance
func (*RedisSource) Out ¶
func (rs *RedisSource) Out() <-chan interface{}
Out returns channel for sending data