1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-02-04 18:21:53 +02:00
Johnson C af3cfa0a4c
remove unnecessary dependencies between plugins
remove unnecessary dependencies between plugins
upgrade go-micro.dev/v4 to v4.2.1
2021-10-23 16:20:42 +08:00
..
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
2020-12-29 15:49:26 +00:00
2020-12-29 15:49:26 +00:00
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
2020-12-29 15:49:26 +00:00
2020-12-29 15:49:26 +00:00
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
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()),
	)
}