client

package
v0.0.0-...-e6d56dd Latest Latest
Warning

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

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

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) Status

func (c *Client) Status(rsp interface{}) (status int, err error)

Status has no operation

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