分离websocket模块

This commit is contained in:
ayflying
2025-05-20 10:43:10 +08:00
parent 82cffdfe29
commit f22c9df605
5 changed files with 11 additions and 4 deletions

5
modules/websocket/go.mod Normal file
View File

@@ -0,0 +1,5 @@
module github.com/ayflying/utility_go/modules/websocket
go 1.24.0
require github.com/ayflying/utility_go v1.2.26

2
modules/websocket/go.sum Normal file
View File

@@ -0,0 +1,2 @@
github.com/ayflying/utility_go v1.2.26/go.mod h1:y6qwRUmYk73cH/dTRSzj2mnaQdtrAfFNH4wRFewxlIc=
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=

View File

@@ -8,7 +8,7 @@ import (
"github.com/ayflying/utility_go/pkg/notice"
"github.com/ayflying/utility_go/pkg/rank"
"github.com/ayflying/utility_go/pkg/s3"
"github.com/ayflying/utility_go/pkg/websocket"
//"github.com/ayflying/utility_go/pkg/websocket"
"github.com/gogf/gf/v2/os/gcache"
)
@@ -32,9 +32,9 @@ func Rank() *rank.Mod {
return rank.New()
}
func Websocket() *websocket.SocketV1 {
return websocket.NewV1()
}
//func Websocket() *websocket.SocketV1 {
// return websocket.NewV1()
//}
func Config() *config.Cfg {
return config.NewV1()