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) SetDirectDefault(command string, handler Handler) error
- func (r *Registry) SetDynamicDefault(command string, handler Handler) error
- type Reply
- type ReplyKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
Runtime *home.Runtime
Conn *ConnEnv
// ClientIP is the remote TCP client's IP address as resolved by the RESP server.
// It can be empty when the address cannot be resolved.
ClientIP string
// NodeID is the mTLS client certificate common name when available.
// It can be empty in unit tests or unauthenticated contexts.
NodeID string
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) RegisterDirect ¶
RegisterDirect handles a register direct.
func (*Registry) RegisterDynamic ¶
RegisterDynamic handles a register dynamic.
func (*Registry) SetDirectDefault ¶
SetDirectDefault sets a direct default.
Click to show internal directories.
Click to hide internal directories.