Documentation ¶ Index ¶ func Carrier(o Operator) contextx.Carrier func With(ctx context.Context, o Operator) context.Context type Executor type MultiExecutor type Operator func From(ctx context.Context) (Operator, bool) func MustFrom(ctx context.Context) Operator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Carrier ¶ func Carrier(o Operator) contextx.Carrier func With ¶ func With(ctx context.Context, o Operator) context.Context Types ¶ type Executor ¶ type Executor interface { Exec(string, ...any) (any, error) } type MultiExecutor ¶ type MultiExecutor interface { } type Operator ¶ type Operator interface { // Key returns key with prefix Key(key string) string // Get redis connection Get() redis.Conn Executor } func From ¶ func From(ctx context.Context) (Operator, bool) func MustFrom ¶ func MustFrom(ctx context.Context) Operator Source Files ¶ View all Source files operator.go Directories ¶ Show internal Expand all Path Synopsis v1 Click to show internal directories. Click to hide internal directories.