MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / commandClient

Method commandClient

internal/home/client.go:287–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285}
286
287func (c *Client) commandClient() (*redis.Client, error) {
288 if errEnsure := c.ensureClients(); errEnsure != nil {
289 return nil, errEnsure
290 }
291 c.mu.Lock()
292 cmd := c.cmd
293 c.mu.Unlock()
294 if cmd == nil {
295 return nil, ErrNotConnected
296 }
297 return cmd, nil
298}
299
300func (c *Client) subscriptionClient() (*redis.Client, error) {
301 if errEnsure := c.ensureClients(); errEnsure != nil {

Callers 15

PingMethod · 0.95
refreshClusterNodesMethod · 0.95
GetConfigMethod · 0.95
GetModelsMethod · 0.95
KVGetMethod · 0.95
KVSetMethod · 0.95
KVDelMethod · 0.95
KVExpireMethod · 0.95
KVTTLMethod · 0.95
KVIncrByMethod · 0.95
KVMGetMethod · 0.95
KVMSetMethod · 0.95

Calls 1

ensureClientsMethod · 0.95

Tested by

no test coverage detected