xmlrpc.go raw

   1  package xmlrpc
   2  
   3  import (
   4  	"fmt"
   5  )
   6  
   7  // xmlrpcError represents errors returned on xmlrpc request.
   8  type XmlRpcError struct {
   9  	Code           interface{}
  10  	Err            string
  11  	HttpStatusCode int
  12  }
  13  
  14  // Error() method implements Error interface
  15  func (e *XmlRpcError) Error() string {
  16  	return fmt.Sprintf(
  17  		"error: %s, code: %v, http status code: %d",
  18  		e.Err, e.Code, e.HttpStatusCode)
  19  }
  20  
  21  type Params struct {
  22  	Params []interface{}
  23  }
  24  
  25  type Struct map[string]interface{}
  26