MCPcopy
hub / github.com/redis/go-redis / newMonitorCmd

Function newMonitorCmd

command.go:8001–8012  ·  view source on GitHub ↗
(ctx context.Context, ch chan string)

Source from the content-addressed store, hash-verified

7999}
8000
8001func newMonitorCmd(ctx context.Context, ch chan string) *MonitorCmd {
8002 return &MonitorCmd{
8003 baseCmd: baseCmd{
8004 ctx: ctx,
8005 args: []interface{}{"monitor"},
8006 cmdType: CmdTypeMonitor,
8007 },
8008 ch: ch,
8009 status: monitorStatusIdle,
8010 mu: sync.Mutex{},
8011 }
8012}
8013
8014func (cmd *MonitorCmd) String() string {
8015 return cmdString(cmd, nil)

Callers 2

MonitorMethod · 0.85
CloneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected