gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/client/grpc/README.md (about)

     1  # GRPC Client
     2  
     3  The grpc client is a [micro.Client](https://godoc.org/gitee.com/liuxuezhan/go-micro-v1.18.0/client#Client) compatible client.
     4  
     5  ## Overview
     6  
     7  The client makes use of the [google.golang.org/grpc](google.golang.org/grpc) framework for the underlying communication mechanism.
     8  
     9  ## Usage
    10  
    11  Specify the client to your micro service
    12  
    13  ```go
    14  import (
    15  	"gitee.com/liuxuezhan/go-micro-v1.18.0"
    16  	"github.com/micro/go-plugins/client/grpc"
    17  )
    18  
    19  func main() {
    20  	service := micro.NewService(
    21  		micro.Name("greeter"),
    22  		micro.Client(grpc.NewClient()),
    23  	)
    24  }
    25  ```