redis

package
v0.6.0-alpha.18 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(logger logger.Logger) bindings.OutputBinding

NewRedis returns a new redis bindings instance.

Types

type Redis

type Redis struct {
	BaseOperations
	// contains filtered or unexported fields
}

Redis is a redis output binding.

func (*Redis) Close

func (r *Redis) Close() error

func (*Redis) GetLogger

func (r *Redis) GetLogger() logger.Logger

GetLogger returns the logger, implements BaseInternalOps interface.

func (*Redis) GetRole

func (r *Redis) GetRole(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)

func (*Redis) GetRunningPort

func (r *Redis) GetRunningPort() int

func (*Redis) Init

func (r *Redis) Init(meta bindings.Metadata) (err error)

Init performs metadata parsing and connection creation.

func (*Redis) InternalExec

func (r *Redis) InternalExec(ctx context.Context, cmd string) (int64, error)

InternalExec is used for internal execution, implements BaseInternalOps interface.

func (*Redis) InternalQuery

func (r *Redis) InternalQuery(ctx context.Context, cmd string) ([]byte, error)

InternalQuery is used for internal query, implements BaseInternalOps interface.

func (*Redis) Ping

func (r *Redis) Ping() error

Jump to

Keyboard shortcuts

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