~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/rpc/jsonrpc/server.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:
43
43
}
44
44
 
45
45
type serverRequest struct {
46
 
        Method string           "method"
47
 
        Params *json.RawMessage "params"
48
 
        Id     *json.RawMessage "id"
 
46
        Method string           `json:"method"`
 
47
        Params *json.RawMessage `json:"params"`
 
48
        Id     *json.RawMessage `json:"id"`
49
49
}
50
50
 
51
51
func (r *serverRequest) reset() {
59
59
}
60
60
 
61
61
type serverResponse struct {
62
 
        Id     *json.RawMessage "id"
63
 
        Result interface{}      "result"
64
 
        Error  interface{}      "error"
 
62
        Id     *json.RawMessage `json:"id"`
 
63
        Result interface{}      `json:"result"`
 
64
        Error  interface{}      `json:"error"`
65
65
}
66
66
 
67
67
func (c *serverCodec) ReadRequestHeader(r *rpc.Request) os.Error {