README
¶
GRPC Client
The grpc client is a micro.Client compatible client.
Overview
The client makes use of the google.golang.org/grpc framework for the underlying communication mechanism.
Usage
Specify the client to your micro service
import (
"github.com/micro/go-micro"
"github.com/micro/go-plugins/client/grpc"
)
func main() {
service := micro.NewService(
micro.Name("greeter"),
micro.Client(grpc.NewClient()),
)
}
Documentation
¶
Overview ¶
Package grpc provides a gRPC client
Package grpc provides a gRPC options
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 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 )
Functions ¶
func Codec ¶ added in v0.6.0
gRPC Codec to be used to encode/decode requests for a given content type
func MaxRecvMsgSize ¶ added in v0.16.2
MaxRecvMsgSize set the maximum size of message that client can receive.
func MaxSendMsgSize ¶ added in v0.20.0
MaxSendMsgSize set the maximum size of message that client can send.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.