func ServeRPC() { rpc.HandleHTTP() if *authConfig != "" { if err := auth.LoadCredentials(*authConfig); err != nil { log.Fatalf("could not load authentication credentials, not starting rpc servers: %v", err) } bsonrpc.ServeAuthRPC() jsonrpc.ServeAuthRPC() } jsonrpc.ServeHTTP() jsonrpc.ServeRPC() bsonrpc.ServeHTTP() bsonrpc.ServeRPC() }
func serveAuthRPC() { bsonrpc.ServeAuthRPC() jsonrpc.ServeAuthRPC() }