예제 #1
0
파일: client.go 프로젝트: phusl/machine
func (c *XenAPIClient) RPCCall(result interface{}, method string, params []interface{}) (err error) {
	log.Debugf("RPCCall method=%v params=%v\n", method, params)
	p := new(xmlrpc.Params)
	p.Params = params
	err = c.RPC.Call(method, *p, result)
	return err
}
예제 #2
0
func (c *XenAPIClient) RPCCall(result interface{}, method string, params []interface{}) (err error) {
	fmt.Println(params)
	p := new(xmlrpc.Params)
	p.Params = params
	err = c.RPC.Call(method, *p, result)
	return err
}