mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 09:38:26 -05:00
Bumps [github.com/go-micro/plugins/v4/client/grpc](https://github.com/go-micro/plugins) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/go-micro/plugins/releases) - [Commits](https://github.com/go-micro/plugins/compare/v4/auth/jwt/v1.2.0...v4/logger/zap/v1.2.1) --- updated-dependencies: - dependency-name: github.com/go-micro/plugins/v4/client/grpc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
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()),
)
}