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-08-12 12:15:49 +01:00
..
codec.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
error.go grpc client: fix grpc code to micro http status conversion for the fallback case with empty Details (#2206) 2021-08-12 12:15:49 +01:00
go.mod continue fix pre version go get bug that unknown v3.5.1 (#2188) 2021-06-30 09:24:00 +01:00
go.sum 1.fix plugins go get bug. (#2187) 2021-06-30 07:21:03 +01:00
grpc_pool_test.go refactor all the things 2020-12-29 15:49:26 +00:00
grpc_pool.go refactor all the things 2020-12-29 15:49:26 +00:00
grpc_test.go update etcd version (#2186) 2021-06-29 13:40:54 +01:00
grpc.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
message.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
options.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00: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 update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
response.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00:00
stream.go update v3 plugins (#2105) 2021-01-20 21:01:10 +00: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()),
	)
}