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

Method CheckAuth

api/rpc/rpc.go:88–95  ·  view source on GitHub ↗
(req *proto.CheckAuthRequest)

Source from the content-addressed store, hash-verified

86}
87
88func (rpc *RpcLogic) CheckAuth(req *proto.CheckAuthRequest) (code int, userId int, userName string) {
89 reply := &proto.CheckAuthResponse{}
90 LogicRpcClient.Call(context.Background(), "CheckAuth", req, reply)
91 code = reply.Code
92 userId = reply.UserId
93 userName = reply.UserName
94 return
95}
96
97func (rpc *RpcLogic) Logout(req *proto.LogoutRequest) (code int) {
98 reply := &proto.LogoutResponse{}

Callers 4

CheckSessionIdFunction · 0.45
PushFunction · 0.45
PushRoomFunction · 0.45
CheckAuthFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected