Documentation
¶
Index ¶
- func ExtractJSONArgument(args []string, jsonIndex int) (string, bool)
- type ConnEnv
- type Env
- type Handler
- type Registry
- func (r *Registry) Execute(ctx context.Context, env Env, args []string) Reply
- func (r *Registry) RegisterDirect(command string, key string, handler Handler) error
- func (r *Registry) RegisterDynamic(command string, typeValue string, handler Handler) error
- func (r *Registry) Routes() []Route
- func (r *Registry) SetDirectDefault(command string, handler Handler) error
- func (r *Registry) SetDynamicDefault(command string, handler Handler) error
- type Reply
- type ReplyKind
- type Route
- type RouteKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) RegisterDirect ¶
func (*Registry) RegisterDynamic ¶
func (*Registry) SetDirectDefault ¶
type Reply ¶
type Reply struct {
Kind ReplyKind
SimpleString string
BulkString []byte
RedisError string
Integer int64
Array []Reply
}
func BulkString ¶
func RedisError ¶
func SimpleString ¶
Click to show internal directories.
Click to hide internal directories.