client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMaxRecvMsgSize = 1024 * 1024 * 4

DefaultMaxRecvMsgSize maximum message that client can receive (4 MB).

View Source
var DefaultMaxSendMsgSize = 1024 * 1024 * 4

DefaultMaxSendMsgSize maximum message that client can send (4 MB).

View Source
var DefaultTimeout = 3 * time.Second

DefaultTimeout 默认的连接超时时间

Functions

func Get

func Get(service string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

Get new grpc client

func GetConnWithTracer added in v1.2.0

func GetConnWithTracer(service string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

func New

func New(service string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

func NewConnWithHashBalancer added in v1.3.0

func NewConnWithHashBalancer(endpoints []string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

func NewConnWithTracer added in v1.2.0

func NewConnWithTracer(service string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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