MCPcopy Create free account
hub / github.com/6boris/web3-template / GetUser

Method GetUser

api/service/demo/user_http.pb.go:67–78  ·  view source on GitHub ↗
(ctx context.Context, in *GetUserRequest, opts ...http.CallOption)

Source from the content-addressed store, hash-verified

65}
66
67func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error) {
68 var out GetUserReply
69 pattern := "/api/service/demo/user/{id}"
70 path := binding.EncodeURL(pattern, in, true)
71 opts = append(opts, http.Operation(OperationUserGetUser))
72 opts = append(opts, http.PathTemplate(pattern))
73 err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...)
74 if err != nil {
75 return nil, err
76 }
77 return &out, err
78}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected