reflection

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package grpcreflection provides gRPC reflection client. Currently, gRPC reflection depends on Protocol Buffers, so we split this package from grpc package.

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)
	// Reset clears internal states of Client.
	Reset()
}

Client defines gRPC reflection client.

func NewClient

func NewClient(conn grpc.ClientConnInterface) Client

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

Jump to

Keyboard shortcuts

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