(ctx context.Context, ch chan string)
| 7999 | } |
| 8000 | |
| 8001 | func 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 | |
| 8014 | func (cmd *MonitorCmd) String() string { |
| 8015 | return cmdString(cmd, nil) |