Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XanCafe/websocket-gin-demo
/ functions
Functions
17 in github.com/XanCafe/websocket-gin-demo
⨍
Functions
17
◇
Types & classes
5
↓ 3 callers
Method
Run
Run .
message-chat/server/hub.go:36
↓ 2 callers
Method
GetListenAddr
GetListenAddr 监听地址
message-chat/config/config.go:29
↓ 1 callers
Method
RedisServerConf
RedisServerConf 获取数据库配置
message-chat/config/config.go:23
↓ 1 callers
Function
echo
此处为websocket 执行的长连接 函数
server/server.go:25
↓ 1 callers
Function
newPool
newPool New redis pool.
message-chat/middlewares/redis.go:29
↓ 1 callers
Method
readPump
readPump pumps messages from the websocket connection to the hub. The application runs readPump in a per-connection goroutine. The application ensure
message-chat/server/client.go:61
↓ 1 callers
Function
updateMsg
此处为服务端接收 需要推送的信息
server/server.go:16
↓ 1 callers
Method
writePump
writePump pumps messages from the hub to the websocket connection. A goroutine running writePump is started for each connection. The application ensu
message-chat/server/client.go:89
Function
Config
Config .
message-chat/middlewares/config.go:10
Function
NewHub
NewHub .
message-chat/server/hub.go:25
Function
Redis
Redis .
message-chat/middlewares/redis.go:13
Function
ServeWs
ServeWs handles websocket requests from the peer.
message-chat/server/client.go:146
Function
UnmarshalConfig
UnmarshalConfig 解析toml配置
message-chat/config/config.go:14
Function
init
init 初始化配置
message-chat/main.go:21
Function
main
()
message-chat/main.go:25
Function
main
()
server/server.go:45
Function
main
()
clients/client.go:11