mirror of
https://github.com/xinliangnote/go-gin-api.git
synced 2024-04-21 12:31:46 +00:00
feature(1.2.8): 新增 websocket 模块
- import gorilla/websocket - 新增 实用工具箱->WebSocket 栏目
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package tool_handler
|
||||
|
||||
import (
|
||||
"github.com/xinliangnote/go-gin-api/internal/pkg/core"
|
||||
)
|
||||
|
||||
func (h *handler) WebsocketView() core.HandlerFunc {
|
||||
return func(c core.Context) {
|
||||
c.HTML("tool_websocket", nil)
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ type Handler interface {
|
||||
LogsView() core.HandlerFunc
|
||||
CacheView() core.HandlerFunc
|
||||
DataView() core.HandlerFunc
|
||||
WebsocketView() core.HandlerFunc
|
||||
}
|
||||
|
||||
type handler struct {
|
||||
|
||||
Reference in New Issue
Block a user