Documentation ¶
Index ¶
- Constants
- Variables
- func AllMsg(ctx context.Context, req *ws.AllMsgReq) (*ret.EmptyResp, error)
- func CloseUser(ctx context.Context, req *ws.CloseUserReq) (*ret.EmptyResp, error)
- func Exchange(ctx context.Context, req *ws.ExchangeReq) (*ret.EmptyResp, error)
- func GetRegistKey() string
- func HandleWs(c *gin.Context)
- func IsSessOnline(ctx context.Context, req *ws.IsSessOnlineReq) (*ret.BoolResp, error)
- func Msg(ctx context.Context, req *ws.MsgReq) (*ret.EmptyResp, error)
- func OnClose(s *ws.Session, t int, str string)
- func OnConnect(s *ws.Session)
- func OnDisConnect(s *ws.Session)
- func OnError(s *ws.Session, err error)
- func OnMessage(s *ws.Session, b []byte)
- func OnPing(s *ws.Session)
- func OnSent(s *ws.Session, b []byte)
Constants ¶
View Source
const (
CreatedOn = "created_on"
)
Variables ¶
View Source
var (
WsServer *ws.Server
)
Functions ¶
func GetRegistKey ¶
func GetRegistKey() string
func IsSessOnline ¶
func OnDisConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.