grpcreflection

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 10 Imported by: 1

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.ClientConn) Client

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

func NewWebClient

func NewWebClient(conn *grpcweb.ClientConn) Client

NewWebClient returns an instance of gRPC reflection client for gRPC-Web protocol.

Jump to

Keyboard shortcuts

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