feature(1.2.8): 新增 websocket 模块

- import gorilla/websocket
- 新增 实用工具箱->WebSocket 栏目
This commit is contained in:
新亮
2021-09-20 19:18:15 +08:00
parent 77e8d58298
commit 17be120c06
31 changed files with 848 additions and 19 deletions
@@ -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 {