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) GetType ¶
func (s *SinkPlugin) GetType() sinks.SinkDriver
func (*SinkPlugin) SetExpectedSchema ¶
func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)
func (*SinkPlugin) Stop ¶
func (s *SinkPlugin) Stop()
Click to show internal directories.
Click to hide internal directories.