MCPcopy Create free account
hub / github.com/cloud-native-go/examples / Get

Method Get

ch08/grpc/keyvalue/keyvalue_grpc.pb.go:50–57  ·  view source on GitHub ↗
(ctx context.Context, in *GetRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

48}
49
50func (c *keyValueClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
51 out := new(GetResponse)
52 err := c.cc.Invoke(ctx, "/KeyValue/Get", in, out, opts...)
53 if err != nil {
54 return nil, err
55 }
56 return out, nil
57}
58
59func (c *keyValueClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
60 out := new(PutResponse)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected