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-10-12 12:55:53 +01:00
..
codec.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
error.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
go.mod go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
go.sum Fix client gRPC plugin (#2245) 2021-09-03 14:16:56 +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 go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +01:00
grpc.go go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +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 go-micro.dev/v4 (#2305) 2021-10-12 12:55:53 +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()),
	)
}