~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/rpc/jsonrpc/client.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
}
45
45
 
46
46
type clientRequest struct {
47
 
        Method string         "method"
48
 
        Params [1]interface{} "params"
49
 
        Id     uint64         "id"
 
47
        Method string         `json:"method"`
 
48
        Params [1]interface{} `json:"params"`
 
49
        Id     uint64         `json:"id"`
50
50
}
51
51
 
52
52
func (c *clientCodec) WriteRequest(r *rpc.Request, param interface{}) os.Error {
60
60
}
61
61
 
62
62
type clientResponse struct {
63
 
        Id     uint64           "id"
64
 
        Result *json.RawMessage "result"
65
 
        Error  interface{}      "error"
 
63
        Id     uint64           `json:"id"`
 
64
        Result *json.RawMessage `json:"result"`
 
65
        Error  interface{}      `json:"error"`
66
66
}
67
67
 
68
68
func (r *clientResponse) reset() {