GRPC Programming Model: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * gRPC =Instantiate a GRPC Client=") |
|||
Line 3: | Line 3: | ||
=Instantiate a GRPC Client= | =Instantiate a GRPC Client= | ||
=A Client Invocation= | |||
The generated typed client contains a <code>cc</code> reference to <code>google.golang.org/grpc</code> <code>ClientConn</code> instance, which implements <code>ClientConnInterface</code>. | |||
When a typed invocation is made, <code>cc</code> is invoked as such: | |||
<syntaxhighlight lang='go'> | |||
cc.Invoke(ctx, "/blue.service.quota.v1.QuotaService/SomeMethod", in, out, opts) | |||
</syntaxhighlight> |
Revision as of 23:00, 11 July 2024
Internal
Instantiate a GRPC Client
A Client Invocation
The generated typed client contains a cc
reference to google.golang.org/grpc
ClientConn
instance, which implements ClientConnInterface
.
When a typed invocation is made, cc
is invoked as such:
cc.Invoke(ctx, "/blue.service.quota.v1.QuotaService/SomeMethod", in, out, opts)