rpc

package
v0.0.0-...-5e1d9b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*

  • Created by lock
  • Date: 2019-10-06
  • Time: 22:46

Index

Constants

This section is empty.

Variables

View Source
var LogicRpcClient client.XClient

Functions

func InitLogicRpcClient

func InitLogicRpcClient()

Types

type RpcLogic

type RpcLogic struct {
}
var RpcLogicObj *RpcLogic

func (*RpcLogic) CheckAuth

func (rpc *RpcLogic) CheckAuth(req *proto.CheckAuthRequest) (code int, userId int, userName string)

func (*RpcLogic) Count

func (rpc *RpcLogic) Count(req *proto.Send) (code int, msg string)

func (*RpcLogic) GetRoomInfo

func (rpc *RpcLogic) GetRoomInfo(req *proto.Send) (code int, msg string)

func (*RpcLogic) GetUserNameByUserId

func (rpc *RpcLogic) GetUserNameByUserId(req *proto.GetUserInfoRequest) (code int, userName string)

func (*RpcLogic) Login

func (rpc *RpcLogic) Login(req *proto.LoginRequest) (code int, authToken string, msg string)

func (*RpcLogic) Logout

func (rpc *RpcLogic) Logout(req *proto.LogoutRequest) (code int)

func (*RpcLogic) Push

func (rpc *RpcLogic) Push(req *proto.Send) (code int, msg string)

func (*RpcLogic) PushRoom

func (rpc *RpcLogic) PushRoom(req *proto.Send) (code int, msg string)

func (*RpcLogic) Register

func (rpc *RpcLogic) Register(req *proto.RegisterRequest) (code int, authToken string, msg string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL