redis

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package redis implements the Redis Pub/Sub connector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisSink

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

RedisSink is a Redis Pub/Sub Sink

func NewRedisSink

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

NewRedisSink returns a new RedisSink instance

func (*RedisSink) In

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

In returns an input channel for receiving data

type RedisSource

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

RedisSource is a Redis Pub/Sub Source

func NewRedisSource

func NewRedisSource(ctx context.Context, config *redis.Options, channel string) (*RedisSource, error)

NewRedisSource returns a new RedisSource instance

func (*RedisSource) Out

func (rs *RedisSource) Out() <-chan interface{}

Out returns an output channel for sending data

func (*RedisSource) Via

func (rs *RedisSource) Via(_flow streams.Flow) streams.Flow

Via streams data through the given flow

Jump to

Keyboard shortcuts

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