Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/HuolalaTech/page-spy-api
/ functions
Functions
375 in github.com/HuolalaTech/page-spy-api
⨍
Functions
375
◇
Types & classes
88
↓ 34 callers
Method
Error
()
api/room/error.go:52
↓ 16 callers
Method
Close
(ctx context.Context, code string)
api/event/event.go:75
↓ 16 callers
Method
New
()
rpc/util.go:10
↓ 15 callers
Method
Get
(path string)
storage/api.go:38
↓ 14 callers
Method
IsStatus
(s Status)
state/status_machine.go:28
↓ 14 callers
Function
NewSuccessResponse
(data interface{})
serve/common/api.go:49
↓ 12 callers
Function
Log
()
logger/log.go:11
↓ 12 callers
Method
writeWebsocketError
(errRes error)
serve/socket/socket.go:84
↓ 11 callers
Function
writeResponse
(w http.ResponseWriter, res *common.Response)
serve/socket/socket.go:27
↓ 10 callers
Method
Call
(ctx context.Context, serviceMethod string, args interface{}, reply interface{})
rpc/rpc_client.go:120
↓ 9 callers
Function
Count
Count count 打点
metric/metric.go:10
↓ 9 callers
Method
Done
()
api/room/room.go:308
↓ 9 callers
Function
NewErrorResponse
(err error)
serve/common/api.go:14
↓ 8 callers
Function
NewRpcLocalRoomManagerRequest
()
room/rpc_local_manager.go:62
↓ 8 callers
Function
NewRpcLocalRoomManagerResponse
()
room/rpc_local_manager.go:30
↓ 8 callers
Method
Open
(name string)
static/public.go:20
↓ 8 callers
Method
SetError
(err error)
api/room/error.go:21
↓ 7 callers
Method
GetRoomAddress
()
api/room/room.go:291
↓ 7 callers
Method
GetSelfMachineID
()
rpc/address.go:151
↓ 7 callers
Function
NewErrorResponseWithCode
NewErrorResponseWithCode 创建包含自定义错误码的错误响应
serve/common/api.go:32
↓ 6 callers
Method
Emit
(ctx context.Context, address *Address, pkg *Package)
api/event/event.go:79
↓ 6 callers
Method
GetInfo
()
api/room/room.go:292
↓ 6 callers
Function
NewErrorWithCode
(msg string, code ErrorCode)
api/room/error.go:63
↓ 6 callers
Method
SetStatus
(s Status)
state/status_machine.go:24
↓ 6 callers
Method
getRpcByAddress
(address *event.Address)
room/rpc_remote_manager.go:37
↓ 6 callers
Function
roomMessageToPackage
(msg *room.Message, from *event.Address)
room/message.go:11
↓ 5 callers
Method
Equal
(compare *Address)
api/event/event.go:24
↓ 5 callers
Method
Join
(ctx context.Context, connection *Connection, opt *Info)
api/room/room.go:315
↓ 5 callers
Function
Time
Time Time 打点
metric/metric.go:15
↓ 5 callers
Method
getLocalRoom
(opt *room.Info)
room/local_manager.go:134
↓ 5 callers
Method
joinPath
(id string)
storage/s3.go:21
↓ 4 callers
Method
DeleteFile
(fileId string)
serve/route/core.go:237
↓ 4 callers
Function
FileExists
(path string)
util/fs.go:5
↓ 4 callers
Method
IsClose
()
api/event/event.go:74
↓ 4 callers
Method
Listen
(ctx context.Context, pkg *Package)
api/event/event.go:73
↓ 4 callers
Method
SendMessageWithTimeout
(msg *room.Message, timeout time.Duration)
room/local_room.go:266
↓ 4 callers
Method
getConnectionsWithLock
()
room/local_room.go:119
↓ 4 callers
Function
getTags
(params url.Values)
serve/route/route.go:34
↓ 4 callers
Function
isEmptyArray
(a []string)
serve/middleware/cors.go:9
↓ 4 callers
Method
newSession
()
storage/s3.go:25
↓ 3 callers
Method
Count
Count count 打点
metric/metric.go:26
↓ 3 callers
Method
FindLogGroup
(groupId string)
data/api.go:8
↓ 3 callers
Method
GetError
()
api/room/error.go:6
↓ 3 callers
Function
GetLocalIP
GetLocalIP 获取本机ip 获取失败返回 ""
util/ip.go:6
↓ 3 callers
Method
GetLogDir
()
config/config.go:57
↓ 3 callers
Method
GetMachineIpInfo
()
rpc/address.go:163
↓ 3 callers
Function
NewStatusMachine
()
state/status_machine.go:14
↓ 3 callers
Function
NotMessageType
(messageType string)
api/room/room.go:83
↓ 3 callers
Method
Regist
(name string, api interface{})
rpc/rpc.go:49
↓ 3 callers
Method
Start
(ctx context.Context)
api/room/room.go:305
↓ 3 callers
Method
Update
(info *Info)
api/room/room.go:260
↓ 3 callers
Method
WriteDataIgnoreError
(data interface{})
serve/socket/socket.go:55
↓ 3 callers
Function
getLocalDataFilePath
()
data/db.go:28
↓ 3 callers
Method
getRooms
()
room/basic_manager.go:75
↓ 3 callers
Method
removeRoom
(room room.ManagerRoom)
room/basic_manager.go:92
↓ 2 callers
Method
AddTask
(task *Task)
task/task.go:67
↓ 2 callers
Function
CallAllClient
(r *RpcManager, ctx context.Context, method string, req any, res T)
rpc/util.go:13
↓ 2 callers
Function
Container
()
container/container.go:77
↓ 2 callers
Method
CreateFile
(file *storage.LogFile)
serve/route/core.go:63
↓ 2 callers
Method
CreateFileId
(md5 string)
serve/route/core.go:35
↓ 2 callers
Method
CreateLocalRoom
(ctx context.Context, info *room.Info)
room/rpc_remote_manager.go:114
↓ 2 callers
Method
CreateRoom
(ctx context.Context, info *room.Info)
room/rpc_remote_manager.go:118
↓ 2 callers
Method
Desc
()
data/logs.go:41
↓ 2 callers
Method
GeneratorConnectionAddress
()
rpc/address.go:127
↓ 2 callers
Method
GeneratorLocalID
()
rpc/address.go:147
↓ 2 callers
Method
GetFrom
()
data/db.go:286
↓ 2 callers
Method
GetMachineIdByFileName
(name string)
serve/route/core.go:43
↓ 2 callers
Method
GetOffset
()
data/db.go:275
↓ 2 callers
Method
GetOrderValue
()
data/logs.go:27
↓ 2 callers
Method
GetRoom
(ctx context.Context, info *room.Info)
room/rpc_remote_manager.go:169
↓ 2 callers
Method
GetRoomUsers
()
api/room/room.go:314
↓ 2 callers
Method
GetRooms
()
room/rpc_local_manager.go:42
↓ 2 callers
Method
GetRpcByAddress
(address *event.Address)
rpc/rpc.go:36
↓ 2 callers
Method
GetRpcList
()
rpc/rpc.go:40
↓ 2 callers
Method
GetSelfAddress
()
rpc/address.go:159
↓ 2 callers
Method
GetTo
()
data/db.go:296
↓ 2 callers
Function
InitJWTSecret
InitJWTSecret 初始化JWT密钥
serve/middleware/jwt.go:21
↓ 2 callers
Method
IsRemoteStorage
()
config/config.go:83
↓ 2 callers
Method
IsSelfMachine
(machineId string)
serve/route/core.go:39
↓ 2 callers
Method
IsSelfMachineAddress
(address *event.Address)
rpc/address.go:155
↓ 2 callers
Method
JoinRoom
(ctx context.Context, connection *room.Connection, opt *room.Info)
room/rpc_remote_manager.go:231
↓ 2 callers
Function
MD5
(data []byte)
util/byte.go:8
↓ 2 callers
Function
NewBasicManager
()
room/basic_manager.go:17
↓ 2 callers
Function
NewMessageContent
(messageType string)
api/room/room.go:104
↓ 2 callers
Function
NewTask
(name string, interval time.Duration, f func() error)
task/task.go:49
↓ 2 callers
Method
Proxy
(machineId string, c echo.Context)
proxy/proxy.go:23
↓ 2 callers
Method
Read
(p []byte)
serve/route/core.go:55
↓ 2 callers
Method
RemoveListener
(address *Address, listener Listener)
api/event/event.go:82
↓ 2 callers
Method
Save
(path string, data io.ReadSeeker)
storage/api.go:36
↓ 2 callers
Method
SaveLog
(log *LogFile)
storage/api.go:31
↓ 2 callers
Method
SendMessage
(ctx context.Context, msg *room.Message)
room/local_room.go:244
↓ 2 callers
Method
SetRooms
(rooms []room.Room)
room/rpc_local_manager.go:34
↓ 2 callers
Method
ShouldRemove
()
api/room/room.go:298
↓ 2 callers
Method
WriteMessage
(messageType int, data []byte)
serve/socket/socket.go:51
↓ 2 callers
Method
close
()
room/basic_room.go:23
↓ 2 callers
Method
getLogDB
(db *gorm.DB)
data/db.go:330
↓ 2 callers
Method
getLogGroupDB
(db *gorm.DB)
data/db.go:306
↓ 2 callers
Function
getQueryList
(c echo.Context)
serve/route/route.go:48
↓ 2 callers
Method
getRoom
(opt *room.Info)
room/basic_manager.go:85
↓ 2 callers
Function
getTags
(query url.Values)
serve/socket/socket.go:291
next →
1–100 of 375, ranked by callers