reflection

package
Version: v0.8.3 Latest Latest
Warning

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

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

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL