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)
}
func NewFileBus ¶
func NewFileBus() (chan *grpcreflect.ServerReflectionRequest, chan *grpcreflect.ServerReflectionResponse, FileBus)
Click to show internal directories.
Click to hide internal directories.