From c544cada793c4cdd9628f831b459c213f661ecdc Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 4 Apr 2016 03:21:26 +0200 Subject: Hide register RPC --- rpc.go | 2 +- server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc.go b/rpc.go index 9d18d16..1f3c877 100644 --- a/rpc.go +++ b/rpc.go @@ -22,7 +22,7 @@ func init() { rpc.HandleHTTP() } -func RegisterRPC(s *Server) error { +func registerRPC(s *Server) error { return rpc.Register(&GoXY{s}) } diff --git a/server.go b/server.go index 638039b..e1618db 100644 --- a/server.go +++ b/server.go @@ -60,7 +60,7 @@ func NewServer(dataFile, listenWWW, listenTLS, listenRPC string) (*Server, error if dataFile != "" { server.Load(dataFile) } - RegisterRPC(server) + registerRPC(server) http.Handle("/debug/route", server) return server, server.UpdateMux() } -- cgit v1.2.3