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

Method GetUser

api/interface/web3/demo_http.pb.go:106–117  ·  view source on GitHub ↗
(ctx context.Context, in *GetUserRequest, opts ...http.CallOption)

Source from the content-addressed store, hash-verified

104}
105
106func (c *DemoHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error) {
107 var out GetUserReply
108 pattern := "/api/gateway/interface/web3/demo/user/{id}"
109 path := binding.EncodeURL(pattern, in, true)
110 opts = append(opts, http.Operation(OperationDemoGetUser))
111 opts = append(opts, http.PathTemplate(pattern))
112 err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...)
113 if err != nil {
114 return nil, err
115 }
116 return &out, err
117}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected