logic

package
v0.0.0-...-5591726 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreatedOn = "created_on"
)

Variables

View Source
var (
	WsServer *ws.Server
)

Functions

func AllMsg

func AllMsg(ctx context.Context, req *ws.AllMsgReq) (*ret.EmptyResp, error)

func CloseUser

func CloseUser(ctx context.Context, req *ws.CloseUserReq) (*ret.EmptyResp, error)

func Exchange

func Exchange(ctx context.Context, req *ws.ExchangeReq) (*ret.EmptyResp, error)

func GetRegistKey

func GetRegistKey() string

func HandleWs

func HandleWs(c *gin.Context)

func IsSessOnline

func IsSessOnline(ctx context.Context, req *ws.IsSessOnlineReq) (*ret.BoolResp, error)

func Msg

func Msg(ctx context.Context, req *ws.MsgReq) (*ret.EmptyResp, error)

func OnClose

func OnClose(s *ws.Session, t int, str string)

func OnConnect

func OnConnect(s *ws.Session)

func OnDisConnect

func OnDisConnect(s *ws.Session)

func OnError

func OnError(s *ws.Session, err error)

func OnMessage

func OnMessage(s *ws.Session, b []byte)

收到消息

func OnPing

func OnPing(s *ws.Session)

func OnSent

func OnSent(s *ws.Session, b []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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