mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
Improve code further - this time further simplification of names
This commit is contained in:
@@ -24,14 +24,13 @@ import (
|
||||
"github.com/gorilla/rpc/v2/json"
|
||||
)
|
||||
|
||||
// getRPCHandler rpc handler
|
||||
func getRPCCtrlHandler() http.Handler {
|
||||
// getControllerRPCHandler rpc handler for controller
|
||||
func getControllerRPCHandler() 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(controllerServerRPCService), "Server")
|
||||
s.RegisterService(new(controllerRPCService), "Server")
|
||||
// Add new RPC services here
|
||||
return registerRPC(router.NewRouter(), s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user