Documentation ¶
Index ¶
- Constants
- func NewRedis(logger logger.Logger) bindings.OutputBinding
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) GetComponentMetadata() map[string]string
- func (r *Redis) Init(ctx context.Context, meta bindings.Metadata) (err error)
- func (r *Redis) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (r *Redis) Operations() []bindings.OperationKind
- func (r *Redis) Ping(ctx context.Context) error
Constants ¶
View Source
const ( // IncrementOperation is the operation to increment a key. IncrementOperation bindings.OperationKind = "increment" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis is a redis output binding.
func (*Redis) GetComponentMetadata ¶
GetComponentMetadata returns the metadata of the component.
func (*Redis) Invoke ¶
func (r *Redis) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*Redis) Operations ¶
func (r *Redis) Operations() []bindings.OperationKind
Click to show internal directories.
Click to hide internal directories.