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"
|
2024-04-06 22:32:12 +03:00
|
|
|
// ReflectServiceURLPathV1 is the full path for reflection service endpoint
|
|
|
|
ReflectServiceURLPathV1 = "/" + ReflectV1ServiceName + "/"
|
|
|
|
// ReflectMethodName is the reflection service name
|
|
|
|
ReflectMethodName = "ServerReflectionInfo"
|
2024-01-22 09:14:50 +03:00
|
|
|
)
|