1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/plugins/client/grpc
2021-11-11 14:03:34 +00:00
..
codec.go fix(#2333): etcd grpc marshal issue (#2334) 2021-11-03 10:58:05 +08:00
error.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
go.mod upgrade to go 1.17 (#2346) 2021-11-11 14:03:34 +00:00
go.sum fix(#2333): etcd grpc marshal issue (#2334) 2021-11-03 10:58:05 +08:00
grpc_pool_test.go [feature] stream CloseSend (#2323) 2021-10-26 15:07:08 +01:00
grpc_pool.go [feature] stream CloseSend (#2323) 2021-10-26 15:07:08 +01:00
grpc_test.go 1. use default memory registry in grpc plugins (#2317) 2021-10-22 22:30:28 +08:00
grpc.go [feature] stream CloseSend (#2323) 2021-10-26 15:07:08 +01:00
message.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
options.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
README.md refactor all the things 2020-12-29 15:49:26 +00:00
request_test.go refactor all the things 2020-12-29 15:49:26 +00:00
request.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
response.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
stream.go [feature] stream CloseSend (#2323) 2021-10-26 15:07:08 +01:00

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()),
	)
}