Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseNetwork ¶
ParseNetwork is func to parse network string
Types ¶
type ConnectArg ¶
ConnectArg is struct of connect arg
type DisconnectArg ¶
DisconnectArg is struct of disconnect arg
type DisconnectReply ¶
type DisconnectReply struct {
Has bool
}
DisconnectReply is struct of disconnect reply
type Member ¶
type Member struct { ID int `json:"member_id"` AppID string `json:"app_id"` OpenID string `json:"open_id"` Scene string `json:"scene"` //SgID int32 `json:"sg_id"` Nickname string `json:"nick_name"` Avatar string `json:"avatar"` }
Member is struct of token payload
func JwtParseMember ¶
JwtParseMember is func to parse and valid token
type MemberStdClaims ¶
type MemberStdClaims struct { jwt.StandardClaims *Member }
MemberStdClaims is struct for more payload
type Server ¶
type Server int
Server is struct of logic rpc server
func (*Server) Connect ¶
func (rpc *Server) Connect(_ context.Context, args *ConnectArg, reply *ConnectReply) (err error)
Connect is api for connect
func (*Server) Disconnect ¶
func (rpc *Server) Disconnect(_ context.Context, args *DisconnectArg, reply *DisconnectReply) (err error)
Disconnect if func to remove room user
Click to show internal directories.
Click to hide internal directories.