blob: 935455e5a09fa0a68d09202dbac0f85fedf51873 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package rpc
import (
"v.io/v23/context"
"v.io/v23/rpc"
)
func InternalServerResolveToEndpoint(ctx *context.T, s rpc.Server, name string) (string, error) {
eps, err := s.(*server).resolveToEndpoint(ctx, name)
if err != nil {
return "", err
}
return eps[0].String(), nil
}