code: func (n *Node) doRaftState(conn redcon.Conn, cmd redcon.Command) (interface{}, error) {
  	if len(cmd.Args) != 1 {
  		return nil, ErrWrongNumberOfArguments
  	}
  	conn.WriteBulkString(n.raft.State().String())
  	return nil, nil
  }
docs: // doRaftState handles a "RAFTSTATE" client command.