redis

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 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 represents a Redis Pub/Sub sink connector.

func NewRedisSink

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

NewRedisSink returns a new RedisSink instance.

func (*RedisSink) In

func (rs *RedisSink) In() chan<- any

In returns an input channel for receiving data.

type RedisSource

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

RedisSource represents a Redis Pub/Sub source connector.

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 any

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