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

Function NewServer

reflection/serverreflection.go:136–138  ·  view source on GitHub ↗

NewServer returns a reflection server implementation using the given options. This can be used to customize behavior of the reflection service. Most usages should prefer to use Register instead. For backwards compatibility reasons, this returns the v1alpha version of the reflection server. For a v1

(opts ServerOptions)

Source from the content-addressed store, hash-verified

134// Notice: This function is EXPERIMENTAL and may be changed or removed in a
135// later release.
136func NewServer(opts ServerOptions) v1alphareflectiongrpc.ServerReflectionServer {
137 return asV1Alpha(NewServerV1(opts))
138}
139
140// NewServerV1 returns a reflection server implementation using the given options.
141// This can be used to customize behavior of the reflection service. Most usages

Callers

nothing calls this directly

Calls 2

asV1AlphaFunction · 0.85
NewServerV1Function · 0.85

Tested by

no test coverage detected