Documentation ¶
Index ¶
- func NewRedis(logger logger.Logger) bindings.OutputBinding
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) GetLogger() logger.Logger
- func (r *Redis) GetRole(ctx context.Context, request *bindings.InvokeRequest, ...) (string, error)
- func (r *Redis) GetRunningPort() int
- func (r *Redis) Init(meta bindings.Metadata) (err error)
- func (r *Redis) InternalExec(ctx context.Context, cmd string) (int64, error)
- func (r *Redis) InternalQuery(ctx context.Context, cmd string) ([]byte, error)
- func (r *Redis) LockInstance(ctx context.Context) error
- func (r *Redis) Ping() error
- func (r *Redis) UnlockInstance(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
type Redis struct { BaseOperations // contains filtered or unexported fields }
Redis is a redis output binding.
func (*Redis) GetRole ¶
func (r *Redis) GetRole(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)
func (*Redis) GetRunningPort ¶
func (*Redis) InternalExec ¶
InternalExec is used for internal execution, implements BaseInternalOps interface.
func (*Redis) InternalQuery ¶
InternalQuery is used for internal query, implements BaseInternalOps interface.
Click to show internal directories.
Click to hide internal directories.