grpc

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Call

func (c *Client) Call(ctx context.Context, path string, args, reply interface{}, opts ...grpc.CallOption) error

path:/service.Struct/Method

func (*Client) Stream

func (c *Client) Stream(ctx context.Context, path string, opts ...grpc.CallOption) (grpc.ClientStream, error)

type Option

type Option func(*Options)

func Address

func Address(address string) Option

func GrpcDialOptions

func GrpcDialOptions(opts ...grpc.DialOption) Option

type Options

type Options struct {
	PoolSize       int
	PoolTTL        time.Duration
	PoolMaxIdle    int
	PoolMaxStreams int
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...Option) *Options

func (*Options) Build

func (opt *Options) Build() *Client

Jump to

Keyboard shortcuts

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