reflection

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTLSHandshakeFailed = errors.New("TLS handshake failed")

Functions

This section is empty.

Types

type Client

type Client interface {
	// ListPackages lists file descriptors from the gRPC reflection server.
	// ListPackages returns these errors:
	//   - ErrTLSHandshakeFailed: TLS misconfig.
	ListPackages() ([]*desc.FileDescriptor, error)
}

Client defines gRPC reflection client.

func NewClient

func NewClient(conn grpc.ClientConnInterface) Client

NewClient returns an instance of gRPC reflection client for gRPC protocol.

func NewClientWithImportsResolver

func NewClientWithImportsResolver(conn grpc.ClientConnInterface) Client

type FileBus

type FileBus interface {
	GetFilesForSymbol(symbol string) (files []*descriptorpb.FileDescriptorProto, err error)
	GetFilesForExtension(symbol string, extensionNr int32) (files []*descriptorpb.FileDescriptorProto, err error)
}

Jump to

Keyboard shortcuts

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