grpcc

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 27 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(srv string, conn grpc.ClientConnInterface) error

Types

type Client

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

func NewClient added in v0.1.26

func NewClient(srv string, cfg *grpcc_config.Cfg) *Client

func (*Client) Get

func (t *Client) Get() (_ grpc.ClientConnInterface, gErr error)

Get new grpc Client

func (*Client) Invoke

func (t *Client) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error

func (*Client) NewStream

func (t *Client) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)

Directories

Path Synopsis
p2c

Jump to

Keyboard shortcuts

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