Documentation ¶
Index ¶
- type AlphaConverter
- type ExtensionResolver
- type FileExtensionResolver
- type ReflectionClient
- type SimpleResolver
- func (cr *SimpleResolver) Clear()
- func (cr *SimpleResolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
- func (cr *SimpleResolver) FindExtensionByNumber(message protoreflect.FullName, field protowire.Number) (protoreflect.ExtensionDescriptor, error)
- func (cr *SimpleResolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
- func (cr *SimpleResolver) GetExtensionsByMessage(message protoreflect.FullName) ([]int32, error)
- func (cr *SimpleResolver) RegisterFiles(fds []protoreflect.FileDescriptor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlphaConverter ¶
type AlphaConverter struct {
Inner grpc_reflection_v1.ServerReflectionServer
}
AlphaConverter makes a V1 gRPC reflection server implementation backwards compatible with V1alpha.
func (AlphaConverter) ServerReflectionInfo ¶
func (a AlphaConverter) ServerReflectionInfo(stream grpc_reflection_v1alpha.ServerReflection_ServerReflectionInfoServer) error
ServerReflectionInfo implements grpc_reflection_v1alpha.ServerReflectionServer.
type ExtensionResolver ¶
type ExtensionResolver interface { FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionDescriptor, error) GetExtensionsByMessage(message protoreflect.FullName) ([]int32, error) }
type FileExtensionResolver ¶
type FileExtensionResolver interface { protodesc.Resolver ExtensionResolver }
type ReflectionClient ¶
type ReflectionClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(conn *grpc.ClientConn) *ReflectionClient
func (*ReflectionClient) AllFilesForSymbol ¶
func (client *ReflectionClient) AllFilesForSymbol(fullName string) ([]protoreflect.FileDescriptor, error)
func (*ReflectionClient) Connected ¶
func (client *ReflectionClient) Connected() bool
Connected returns true if the client has an open stream to the server.
func (*ReflectionClient) Disconnected ¶
func (client *ReflectionClient) Disconnected() <-chan struct{}
Disconnected returns a channel that will be closed when the underlying stream disconnects.
func (*ReflectionClient) ListServices ¶
func (client *ReflectionClient) ListServices() ([]string, error)
type SimpleResolver ¶
type SimpleResolver struct {
// contains filtered or unexported fields
}
func (*SimpleResolver) Clear ¶
func (cr *SimpleResolver) Clear()
func (*SimpleResolver) FindDescriptorByName ¶
func (cr *SimpleResolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
FindDescriptorByName implements protodesc.Resolver.
func (*SimpleResolver) FindExtensionByNumber ¶
func (cr *SimpleResolver) FindExtensionByNumber(message protoreflect.FullName, field protowire.Number) (protoreflect.ExtensionDescriptor, error)
FindExtensionByNumber implements ExtensionResolver.
func (*SimpleResolver) FindFileByPath ¶
func (cr *SimpleResolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
FindFileByPath implements protodesc.Resolver.
func (*SimpleResolver) GetExtensionsByMessage ¶
func (cr *SimpleResolver) GetExtensionsByMessage(message protoreflect.FullName) ([]int32, error)
RangeExtensionsByMessage implements ExtensionResolver.
func (*SimpleResolver) RegisterFiles ¶
func (cr *SimpleResolver) RegisterFiles(fds []protoreflect.FileDescriptor) error
Click to show internal directories.
Click to hide internal directories.