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
↓ 1 callers
Function
TimeToNumber
(date time.Time)
util/time.go:5
↓ 1 callers
Method
ToMessage
()
api/room/room.go:34
↓ 1 callers
Method
ToString
()
api/event/event.go:16
↓ 1 callers
Function
Unwrap
(err error)
serve/socket/error.go:7
↓ 1 callers
Method
UpdateInfo
(info *Info)
api/room/room.go:293
↓ 1 callers
Method
UpdateLogGroup
(logGroup *LogGroup)
data/api.go:7
↓ 1 callers
Method
UpdateRoomOption
(ctx context.Context, info *room.Info)
room/local_manager.go:73
↓ 1 callers
Method
WriteData
(data interface{})
serve/socket/socket.go:63
↓ 1 callers
Method
WriteJSON
(v interface{})
serve/socket/socket.go:74
↓ 1 callers
Method
addConnectionWithLock
(connection *room.Connection)
room/local_room.go:100
↓ 1 callers
Method
addListener
(address *event.Address, listener event.Listener)
event/local_event.go:27
↓ 1 callers
Method
addRoom
(room room.ManagerRoom)
room/basic_manager.go:30
↓ 1 callers
Method
broadcast
(ctx context.Context, msg *room.Message)
room/remote_room.go:94
↓ 1 callers
Method
broadcastMessage
(ctx context.Context, msg *room.Message)
room/local_room.go:188
↓ 1 callers
Method
call
(ctx context.Context, serviceMethod string, args interface{}, reply interface{})
rpc/rpc_client.go:81
↓ 1 callers
Function
checkLocalConfigFile
()
config/load.go:94
↓ 1 callers
Method
emitRemote
(ctx context.Context, address *event.Address, pkg *event.Package)
event/local_event.go:77
↓ 1 callers
Function
generateRandomKey
生成随机密钥
serve/middleware/jwt.go:32
↓ 1 callers
Function
generateRandomSecret
生成随机密钥(Base64编码)
config/load.go:81
↓ 1 callers
Function
getAvailablePort
(limit int)
rpc/address.go:23
↓ 1 callers
Function
getAvailablePortWithLimit
()
rpc/address.go:44
↓ 1 callers
Method
getFileGroupList
(query *data.FileListQuery)
serve/route/core.go:182
↓ 1 callers
Method
getFileList
(query *data.FileListQuery)
serve/route/core.go:178
↓ 1 callers
Method
getId
()
rpc/rpc_client.go:35
↓ 1 callers
Method
getListeners
(address *event.Address)
event/local_event.go:62
↓ 1 callers
Method
getRoomsByTags
(tags map[string]string)
room/basic_manager.go:58
↓ 1 callers
Function
include
(arr []string, value string)
serve/route/route.go:25
↓ 1 callers
Method
initClient
()
rpc/rpc_client.go:42
↓ 1 callers
Method
isFull
()
room/local_manager.go:68
↓ 1 callers
Function
isHtml
(ct string)
serve/middleware/cache.go:11
↓ 1 callers
Method
joinRoom
(ctx context.Context, connection *room.Connection, info *room.Info)
room/rpc_remote_manager.go:255
↓ 1 callers
Function
likeTags
(origin map[string]string, condition map[string]string)
room/basic_manager.go:36
↓ 1 callers
Method
listen
()
rpc/rpc.go:53
↓ 1 callers
Function
loadAuthConfigFromEnv
从环境变量加载认证配置
config/load.go:40
↓ 1 callers
Function
loadData
(config *config.Config, remoteStorage storage.StorageApi)
data/db.go:124
↓ 1 callers
Function
loadLocalConfigFile
()
config/load.go:111
↓ 1 callers
Method
loop
()
room/basic_manager.go:98
↓ 1 callers
Method
message
(ctx context.Context, msg *room.Message)
room/remote_room.go:65
↓ 1 callers
Method
messageMessage
(ctx context.Context, msg *room.Message)
room/local_room.go:214
↓ 1 callers
Function
onRoomMessage
(ctx context.Context, socket *socket, room roomApi.RemoteRoom)
serve/socket/socket.go:163
↓ 1 callers
Method
otherMessage
(ctx context.Context, msg *room.Message)
room/local_room.go:169
↓ 1 callers
Method
ping
(ctx context.Context)
room/remote_room.go:84
↓ 1 callers
Method
pingMessage
()
room/local_room.go:164
↓ 1 callers
Method
readClientMessage
(ctx context.Context, socket *socket, room roomApi.RemoteRoom)
serve/socket/socket.go:102
↓ 1 callers
Method
removeConnectionWithLock
(connection *room.Connection)
room/local_room.go:106
↓ 1 callers
Method
run
()
task/task.go:16
↓ 1 callers
Method
serveRoom
(opt *roomApi.Info, connection *roomApi.Connection, socket *socket, room roomApi.RemoteRoom)
serve/socket/socket.go:181
↓ 1 callers
Function
syncData
(config *config.Config, s storage.StorageApi)
data/db.go:170
Function
Auth
Auth 中间件用于验证请求的认证信息
serve/middleware/auth.go:13
Function
CORS
(c *config.Config)
serve/middleware/cors.go:13
Function
Cache
()
serve/middleware/cache.go:15
Method
CleanFile
()
serve/route/core.go:305
Method
Close
()
serve/route/core.go:59
Method
Close
()
task/task.go:29
Method
Close
()
task/task.go:78
Method
Close
(ctx context.Context, closeCode string)
room/local_room.go:280
Method
Close
(ctx context.Context, closeCode string)
api/room/room.go:299
Method
Close
()
api/event/event.go:83
Method
Close
()
event/local_event.go:119
Method
Count
Count count 打点
metric/metric.go:39
Method
CountLogsGroup
(tagKey string)
data/db.go:361
Method
CountLogsSize
()
data/db.go:453
Method
CreateConnection
(_ *http.Request, req *RpcLocalRoomManagerRequest, res *RpcLocalRoomManagerResponse)
room/rpc_local_manager.go:80
Method
CreateConnection
()
room/rpc_remote_manager.go:107
Method
CreateLog
(log *LogData)
data/db.go:255
Method
CreateLogGroup
(groupLog *LogGroup)
data/db.go:202
Method
CreateRoom
(ctx context.Context, info *room.Info)
room/local_manager.go:87
Method
CreateRoom
(_ *http.Request, req *RpcLocalRoomManagerRequest, res *RpcLocalRoomManagerResponse)
room/rpc_local_manager.go:100
Method
DeleteLogByFileId
(fileId string)
data/db.go:408
Method
DeleteLogGroupByGroupId
(groupId string)
data/db.go:245
Method
Done
()
room/basic_room.go:19
Method
Emit
(ctx context.Context, address *event.Address, msg *event.Package)
event/local_event.go:107
Method
Emit
(r *http.Request, req *RpcEventEmitterRequest, res *RpcEventEmitterResponse)
event/rpc_event.go:45
Function
Error
()
serve/middleware/error.go:11
Method
ExistLog
(fileId string)
storage/api.go:33
Method
ExistLog
(fileId string)
storage/file.go:38
Method
ExistLog
(fileId string)
storage/s3.go:111
Method
FindLogGroups
(_ *http.Request, req *data.FileListQuery, res *data.Page[*data.LogGroup])
serve/route/core.go:357
Method
FindLogGroups
(query *FileListQuery)
data/db.go:217
Method
FindLogs
(_ *http.Request, req *data.FileListQuery, res *data.Page[*data.LogData])
serve/route/core.go:347
Method
FindLogs
(query *FileListQuery)
data/db.go:375
Method
FindOldestLogs
(size int)
data/db.go:429
Method
FindShouldDeleteLogs
(size int)
data/db.go:435
Method
FindTimeoutLogs
(before time.Time, size int)
data/db.go:423
Function
GenerateToken
GenerateToken 生成JWT令牌
serve/middleware/jwt.go:57
Method
GetClient
()
rpc/rpc_client.go:66
Method
GetError
()
api/room/error.go:13
Method
GetGroup
()
room/local_room.go:59
Method
GetInfo
()
room/remote_room.go:47
Method
GetInfo
()
room/local_room.go:63
Method
GetLog
(fileId string)
storage/file.go:65
Method
GetLog
(fileId string)
storage/s3.go:115
Method
GetLogDir
()
config/config.go:31
Method
GetMachineID
()
api/event/event.go:20
Method
GetOrderValue
()
data/logs.go:58
Method
GetRoom
(_ *http.Request, req *RpcLocalRoomManagerRequest, res *RpcLocalRoomManagerResponse)
room/rpc_local_manager.go:112
Method
GetRoomAddress
()
room/remote_room.go:43
Method
GetRoomAddress
()
room/local_room.go:51
Method
GetRoomUsers
(ctx context.Context, info *room.Info)
room/rpc_remote_manager.go:156
Method
GetRoomUsers
()
room/local_room.go:55
← previous
next →
201–300 of 375, ranked by callers