MCPcopy Create free account
hub / github.com/LockGit/gochat / Register

Method Register

api/rpc/rpc.go:69–78  ·  view source on GitHub ↗
(req *proto.RegisterRequest)

Source from the content-addressed store, hash-verified

67}
68
69func (rpc *RpcLogic) Register(req *proto.RegisterRequest) (code int, authToken string, msg string) {
70 reply := &proto.RegisterReply{}
71 err := LogicRpcClient.Call(context.Background(), "Register", req, reply)
72 if err != nil {
73 msg = err.Error()
74 }
75 code = reply.Code
76 authToken = reply.AuthToken
77 return
78}
79
80func (rpc *RpcLogic) GetUserNameByUserId(req *proto.GetUserInfoRequest) (code int, userName string) {
81 reply := &proto.GetUserInfoResponse{}

Callers 1

RegisterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected