Implement a new Donut service on server side

This commit is contained in:
Harshavardhana
2015-09-22 19:08:02 -07:00
parent c92145c3df
commit cc223b5278
5 changed files with 111 additions and 53 deletions

View File

@@ -99,6 +99,7 @@ func getServerRPCHandler() http.Handler {
s := jsonrpc.NewServer()
s.RegisterCodec(json.NewCodec(), "application/json")
s.RegisterService(new(serverRPCService), "Server")
s.RegisterService(new(donutRPCService), "Donut")
mux := router.NewRouter()
mux.Handle("/rpc", s)
return mux