proxy

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy is a dynamic gRPC client that performs reflection

func NewProxy

func NewProxy() *Proxy

NewProxy creates a new client

func (*Proxy) Call

func (p *Proxy) Call(ctx context.Context,
	serviceName, methodName string,
	message []byte,
	md *metadata.Metadata,
) ([]byte, error)

Call performs the gRPC call after doing reflection to obtain type information

func (*Proxy) CloseConn

func (p *Proxy) CloseConn() error

CloseConn closes the underlying connection

func (*Proxy) Connect

func (p *Proxy) Connect(ctx context.Context, target *url.URL) error

Connect opens a connection to target.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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