package rpc

/*
func main() {
	md := metadata.New(map[string]string{"request_id": utils.UUID(), "workspace": "scf"})
	ctx := metadata.NewOutgoingContext(context.Background(), md)

	// 建立GRPC连接
	conn, err := grpc.Dial("127.0.0.1:12201", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		panic(err)
	}
	defer conn.Close()
	c := pb.NewCheckClient(conn)
	r, err := c.Hello(ctx, &pb.Crc{
		Code: "david",
	})
	if err != nil {
		panic(err)
	}
	fmt.Printf("返回的消息: %s", r.Message)
}
*/
