Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebsocketServer ¶
func WebsocketServer() *websocketServer
Websocket return ws websocketServer instance
Types ¶
type WsServer ¶ added in v0.9.15
type WsServer interface { Register(conn *websocketConn, handler Handler) Unregister(id string) Start() Broadcast(message []byte, ignore *websocketConn) Send(message []byte, c *websocketConn) UpgradeConn(w http.ResponseWriter, r *http.Request) (*websocketConn, error) }
WsServer
Directories
¶
Path | Synopsis |
---|---|
component
|
|
mysql
Adapter 实现读写分离的gorm适配器 通过实现gorm里的SQLCommon接口实现读写分离的适配 TODO 读库可能存在多个,可以通过基于权重的副在均衡算法完成连接工作的分配
|
Adapter 实现读写分离的gorm适配器 通过实现gorm里的SQLCommon接口实现读写分离的适配 TODO 读库可能存在多个,可以通过基于权重的副在均衡算法完成连接工作的分配 |
examples
|
|
echo
Module
|
|
grpc
Module
|
|
http
|
|
response
r 基于gin的Context,实现响应数据结构体 集成全局traceID
|
r 基于gin的Context,实现响应数据结构体 集成全局traceID |
Click to show internal directories.
Click to hide internal directories.