redis

package
v0.2.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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