redis

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisSinkPlugin

func NewRedisSinkPlugin(config Config, schema []schema.StreamSchema, appCtx *stream_context.Context) sinks.DataSink

Types

type Config

type Config struct {
	RedisAddr     string `json:"redis_addr" yaml:"redis_addr"`
	RedisPassword string `json:"redis_password" yaml:"redis_password"`
	// CustomNamespace can't be used alongside with NamespaceByStream, only one of the
	// Options should be provided.
	// In case provided both - namespace by stream will be used
	CustomNamespace   string `json:"custom_namespace" yaml:"custom_namespace"`
	NamespaceByStream bool   `json:"namespace_by_stream" yaml:"namespace_by_stream"`
	KeyPrefix         string `json:"key_prefix" yaml:"key_prefix"`
	SetWithTTL        int64  `json:"set_with_ttl" yaml:"set_with_ttl"`
}

type SinkPlugin

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

func (*SinkPlugin) Connect

func (s *SinkPlugin) Connect(context context.Context) error

func (*SinkPlugin) GetType

func (s *SinkPlugin) GetType() sinks.SinkDriver

func (*SinkPlugin) SetExpectedSchema

func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)

func (*SinkPlugin) Stop

func (s *SinkPlugin) Stop()

func (*SinkPlugin) Write

func (s *SinkPlugin) Write(m *message.Message) error

Jump to

Keyboard shortcuts

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