mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
Controller Service proxies rpc calls to the corresponding servers
This commit is contained in:
@@ -25,13 +25,13 @@ import (
|
||||
)
|
||||
|
||||
// getRPCHandler rpc handler
|
||||
func getRPCHandler() http.Handler {
|
||||
func getRPCCtrlHandler() http.Handler {
|
||||
s := jsonrpc.NewServer()
|
||||
s.RegisterCodec(json.NewCodec(), "application/json")
|
||||
s.RegisterService(new(VersionService), "Version")
|
||||
s.RegisterService(new(DonutService), "Donut")
|
||||
s.RegisterService(new(AuthService), "Auth")
|
||||
s.RegisterService(new(ServerService), "Server")
|
||||
s.RegisterService(new(controllerServerRPCService), "Server")
|
||||
// Add new RPC services here
|
||||
return registerRPC(router.NewRouter(), s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user