grpc

package
v0.0.0-...-d164338 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New create new grpc client

func TransformContext

func TransformContext(ctx context.Context) context.Context

TransformContext will deliver header in chassis context key to grpc context key

Types

type Client

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

Client is grpc client holder

func (*Client) Call

func (c *Client) Call(ctx context.Context, addr string, inv *invocation.Invocation, rsp interface{}) error

Call remote server

func (*Client) Close

func (c *Client) Close() error

Close close conn

func (*Client) GetOptions

func (c *Client) GetOptions() client.Options

GetOptions method return opts

func (*Client) ReloadConfigs

func (c *Client) ReloadConfigs(opts client.Options)

ReloadConfigs reload configs for timeout and tls

func (*Client) String

func (c *Client) String() string

String return name

Jump to

Keyboard shortcuts

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