2020-09-20 16:12:08 +03:00
|
|
|
package grpc
|
|
|
|
|
|
|
|
import (
|
2024-01-22 09:14:50 +03:00
|
|
|
"google.golang.org/grpc/reflection"
|
|
|
|
"google.golang.org/protobuf/reflect/protodesc"
|
2020-09-20 16:12:08 +03:00
|
|
|
)
|
|
|
|
|
2024-01-22 09:14:50 +03:00
|
|
|
type Reflector interface {
|
|
|
|
protodesc.Resolver
|
|
|
|
reflection.ServiceInfoProvider
|
|
|
|
reflection.ExtensionResolver
|
2020-09-20 16:12:08 +03:00
|
|
|
}
|
|
|
|
|
2024-01-22 09:14:50 +03:00
|
|
|
const (
|
|
|
|
// ReflectV1ServiceName is the fully-qualified name of the v1 version of the reflection service.
|
|
|
|
ReflectV1ServiceName = "grpc.reflection.v1.ServerReflection"
|
|
|
|
// ReflectV1AlphaServiceName is the fully-qualified name of the v1alpha version of the reflection service.
|
|
|
|
ReflectV1AlphaServiceName = "grpc.reflection.v1alpha.ServerReflection"
|
2020-09-20 16:12:08 +03:00
|
|
|
|
2024-01-22 09:14:50 +03:00
|
|
|
ReflectServiceURLPathV1 = "/" + ReflectV1ServiceName + "/"
|
|
|
|
ReflectServiceURLPathV1Alpha = "/" + ReflectV1AlphaServiceName + "/"
|
|
|
|
ReflectMethodName = "ServerReflectionInfo"
|
|
|
|
)
|