go-micro: github.com/micro/go-micro/client/grpc Index | Files

package grpc

import "github.com/micro/go-micro/client/grpc"

Package grpc provides a gRPC client

Package grpc provides a gRPC options

Index

Package Files

codec.go error.go grpc.go grpc_pool.go message.go options.go request.go response.go stream.go

Variables

var (
    // DefaultPoolMaxStreams maximum streams on a connectioin
    // (20)
    DefaultPoolMaxStreams = 20

    // DefaultPoolMaxIdle maximum idle conns of a pool
    // (50)
    DefaultPoolMaxIdle = 50

    // DefaultMaxRecvMsgSize maximum message that client can receive
    // (4 MB).
    DefaultMaxRecvMsgSize = 1024 * 1024 * 4

    // DefaultMaxSendMsgSize maximum message that client can send
    // (4 MB).
    DefaultMaxSendMsgSize = 1024 * 1024 * 4
)

func AuthTLS Uses

func AuthTLS(t *tls.Config) client.Option

AuthTLS should be used to setup a secure authentication using TLS

func CallOptions Uses

func CallOptions(opts ...grpc.CallOption) client.CallOption

CallOptions to be used to configure gRPC call options

func Codec Uses

func Codec(contentType string, c encoding.Codec) client.Option

gRPC Codec to be used to encode/decode requests for a given content type

func DialOptions Uses

func DialOptions(opts ...grpc.DialOption) client.CallOption

DialOptions to be used to configure gRPC dial options

func MaxRecvMsgSize Uses

func MaxRecvMsgSize(s int) client.Option

MaxRecvMsgSize set the maximum size of message that client can receive.

func MaxSendMsgSize Uses

func MaxSendMsgSize(s int) client.Option

MaxSendMsgSize set the maximum size of message that client can send.

func NewClient Uses

func NewClient(opts ...client.Option) client.Client

func PoolMaxIdle Uses

func PoolMaxIdle(d int) client.Option

maximum idle conns of a pool

func PoolMaxStreams Uses

func PoolMaxStreams(n int) client.Option

maximum streams on a connectioin

func UseNumber Uses

func UseNumber()

UseNumber fix unmarshal Number(8234567890123456789) to interface(8.234567890123457e+18)

Package grpc imports 27 packages (graph) and is imported by 11 packages. Updated 2020-09-20. Refresh now. Tools for package owners.