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

Method CreateUser

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

Source from the content-addressed store, hash-verified

91}
92
93func (c *DemoHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error) {
94 var out CreateUserReply
95 pattern := "/api/gateway/interface/web3/demo/user"
96 path := binding.EncodeURL(pattern, in, false)
97 opts = append(opts, http.Operation(OperationDemoCreateUser))
98 opts = append(opts, http.PathTemplate(pattern))
99 err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
100 if err != nil {
101 return nil, err
102 }
103 return &out, err
104}
105
106func (c *DemoHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*GetUserReply, error) {
107 var out GetUserReply

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected