MCPcopy
hub / github.com/grpc/grpc-go / RegisterV1

Function RegisterV1

reflection/serverreflection.go:71–74  ·  view source on GitHub ↗

RegisterV1 registers only the v1 version of the server reflection service on the given gRPC server. Many clients may only support v1alpha so most users should use Register instead, at least until clients have upgraded.

(s GRPCServer)

Source from the content-addressed store, hash-verified

69// on the given gRPC server. Many clients may only support v1alpha so most
70// users should use Register instead, at least until clients have upgraded.
71func RegisterV1(s GRPCServer) {
72 svr := NewServerV1(ServerOptions{Services: s})
73 v1reflectiongrpc.RegisterServerReflectionServer(s, svr)
74}
75
76// ServiceInfoProvider is an interface used to retrieve metadata about the
77// services to expose.

Callers

nothing calls this directly

Calls 1

NewServerV1Function · 0.85

Tested by

no test coverage detected