reflection

package
v0.0.0-...-1babfde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL