code: func (c *Client) SendRequest(method string, params interface{}, conn net.Conn) (interface{}, error) {
  	request := Request{Method: method, Params: params}
  	b, err := json.Marshal(request)
  	if err != nil {
  		return nil, err
  	}
  	b = append(b, '\n')
  	_, err = conn.Write(b)
  	if err != nil {
  		return nil, err
  	}
  	reader := bufio.NewReader(conn)
  	b2, err := reader.ReadBytes('\n')
  	if err != nil {
  		return nil, err
  	}
  	var response Response
  	err = json.Unmarshal(b2, &response)
  	if err != nil {
  		return nil, err
  	}
  	if response.Error != nil {
  		return nil, fmt.Errorf("%s", response.Error.Message)
  	}
  
  	if response.Result == nil {
  		return nil, fmt.Errorf("No valid result returned")
  	}
  
  	return *response.Result, nil
  }
docs: // Send a request to the pffilter service