Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devfeel/longweb
/ functions
Functions
133 in github.com/devfeel/longweb
⨍
Functions
133
◇
Types & classes
28
↓ 44 callers
Method
Debug
(log string)
framework/log/innerlogger.go:25
↓ 32 callers
Method
Error
(log string)
framework/log/innerlogger.go:37
↓ 22 callers
Method
Warn
(log string)
framework/log/innerlogger.go:33
↓ 13 callers
Method
SendMessage
send a meeage for full app groups online groupid do nothing return send client count
message/usergroup.go:192
↓ 11 callers
Method
Info
(log string)
framework/log/innerlogger.go:29
↓ 9 callers
Method
GetClientInfo
get client's json string
message/userclient.go:269
↓ 4 callers
Method
GetState_AuthLongPollCount
get app's auth longpoll client count
message/usergroup.go:163
↓ 4 callers
Method
GetState_AuthWebSocketCount
get app's auth websocke client count
message/usergroup.go:135
↓ 4 callers
Method
GetState_LongPollClientCount
get usergroup's longpollclient count
message/usergroup.go:334
↓ 4 callers
Method
GetState_WebSocketClientCount
get usergroup's websocketclient count
message/usergroup.go:316
↓ 4 callers
Function
Log
(log string, logTarget string, logLevel string)
framework/log/logger.go:51
↓ 4 callers
Method
innerWriteLog
(log string, level string)
framework/log/innerlogger.go:50
↓ 3 callers
Function
GetAppGroups
get appgroups with appid
message/usergroup.go:43
↓ 3 callers
Method
GetErrString
()
exception/exception.go:9
↓ 3 callers
Method
GetState_AuthLongPollClientCount
get usergroup's auth longpollclient count
message/usergroup.go:339
↓ 3 callers
Method
GetState_AuthWebSocketClientCount
get usergroup's auth websocketclient count
message/usergroup.go:321
↓ 3 callers
Function
In_slice
(val interface{}, slice []interface{})
framework/slice/slices.go:30
↓ 3 callers
Method
Reset
reset userclient attr
message/userclient.go:167
↓ 3 callers
Method
Stop
停止指定Task执行
framework/task/taskmanager.go:33
↓ 2 callers
Function
CheckAuthToken
*检查应用鉴权结果 Author: panxinming CreateTime: 2017-02-07 13:00 入参: app:应用配置信息 appId:应用编号 groupid:用户组编号,应用自定义 userid:用户编号,应用需保证userid在同Appid下的唯一性 token:鉴权to
message/auth.go:31
↓ 2 callers
Method
GetState_LongPollCount
get app's longpoll client count
message/usergroup.go:149
↓ 2 callers
Method
GetState_TotalClientCount
get app's total client count
message/usergroup.go:107
↓ 2 callers
Method
GetState_WebSocketCount
get app's websocke client count
message/usergroup.go:121
↓ 2 callers
Method
GetUserClient
获取指定UserId的用户客户端代理
message/usergroup.go:301
↓ 2 callers
Function
NewClient
create a new UserClient with socketconn&userinfo
message/userclient.go:77
↓ 2 callers
Method
ReadMessage
read message from websocket.conn or hijackConn
message/userclient.go:230
↓ 2 callers
Function
RegisterClient
register new userclient with roomid return values: -10001: not exists appid -10002: usergroup error 0: ok
message/userclient.go:91
↓ 2 callers
Function
RemoveClient
remove userclient with roomid
message/userclient.go:124
↓ 2 callers
Method
SendMessage
send message to client
message/userclient.go:199
↓ 2 callers
Function
getMsgQueue
get msgqueue with appid
message/message.go:223
↓ 1 callers
Method
AddClient
add new client into usergroup
message/usergroup.go:205
↓ 1 callers
Method
DeleteClient
delete a userclient
message/usergroup.go:216
↓ 1 callers
Method
GetAndInitUserGroup
get and init UserGroup with appid
message/usergroup.go:78
↓ 1 callers
Method
GetDefaultLogString
()
exception/exception.go:11
↓ 1 callers
Method
GetGroupCount
get app's usergroup count
message/usergroup.go:102
↓ 1 callers
Method
GetGroupId
()
message/usergroup.go:311
↓ 1 callers
Method
GetReferrerUrl
get client's referrer url
message/userclient.go:258
↓ 1 callers
Method
GetRemoteAddr
get client's remoteaddr
message/userclient.go:220
↓ 1 callers
Method
GetStackString
()
exception/exception.go:10
↓ 1 callers
Method
GetState_UserGroups
获取用户组列表
message/usergroup.go:185
↓ 1 callers
Function
GetUserGroup
get usergroup with appid & groupid
message/usergroup.go:30
↓ 1 callers
Method
GetUserGroup
获取指定用户组
message/usergroup.go:177
↓ 1 callers
Method
GetWebSocket
get client's websocket
message/userclient.go:253
↓ 1 callers
Function
InitRoute
(dotserver *dotweb.DotWeb)
httpserver/router.go:8
↓ 1 callers
Method
InsertData
insert data into influxdb
repository/influxdbimpl.go:42
↓ 1 callers
Function
NewAppGroups
create a new groups
message/usergroup.go:62
↓ 1 callers
Function
NewUserGroup
create a new client group
message/usergroup.go:57
↓ 1 callers
Function
PushMessage
push new message result: 0:ok -10001:jsonunmar error -10002:this appid no have permission
message/message.go:239
↓ 1 callers
Function
RegisterTaskHandler
(service *task.TaskService)
task/tasks.go:10
↓ 1 callers
Method
SendMessage
send a meeage for full group return send client count
message/usergroup.go:230
↓ 1 callers
Method
SetConn
设置连接属性
repository/influxdbimpl.go:34
↓ 1 callers
Method
Start
启动指定Task执行
framework/task/taskmanager.go:38
↓ 1 callers
Function
StartAllTask
开启所有Task执行
framework/task/taskmanager.go:68
↓ 1 callers
Function
StopAllTask
结束所有Task
framework/task/taskmanager.go:58
↓ 1 callers
Function
handleCustom
处理日志内部函数
framework/log/logger.go:70
↓ 1 callers
Method
innerWriteFile
(logFile string, log string)
framework/log/innerlogger.go:67
↓ 1 callers
Function
listenSignal
()
main.go:78
↓ 1 callers
Function
readMessage
put message from chan
message/message.go:259
↓ 1 callers
Function
writeFile
(logFile string, log string)
framework/log/logger.go:88
↓ 1 callers
Function
writeLog
(chanLog ChanLog, level string)
framework/log/logger.go:77
Function
CatchError
统一异常处理
exception/exception.go:33
Function
CheckAllowIP
检测IP是否被允许访问
config/appconfig.go:96
Function
Debug
(log string, logTarget string)
framework/log/logger.go:35
Function
Error
(log string, logTarget string)
framework/log/logger.go:47
Function
GetAppInfo
(appId string)
config/appconfig.go:88
Function
GetAppList
()
config/appconfig.go:84
Function
GetConnData
获取连接信息
message/conndata.go:21
Function
GetCurrentDirectory
获取当前目录
framework/http/httputil.go:103
Function
GetCurrentDirectory
()
framework/file/fileutil.go:10
Method
GetDefaultLogString
()
exception/exception.go:28
Method
GetErrString
()
exception/exception.go:20
Method
GetIndex
get client's serverindex
message/userclient.go:279
Function
GetInnerLogger
()
framework/log/innerlogger.go:18
Function
GetJsonString
将传入对象转换为json字符串
framework/json/jsonutil.go:8
Function
GetMaxClientIndex
second
message/userclient.go:22
Function
GetQuery
从指定query集合获取指定key的值
framework/http/httputil.go:95
Method
GetStackString
()
exception/exception.go:24
Function
GetState_AppGroups
get appgroups with appid
message/usergroup.go:51
Function
GetTotalClientCreateCount
()
message/userclient.go:26
Function
HttpGet
(url string)
framework/http/httputil.go:33
Function
HttpPost
(url string, postbody string, bodyType string)
framework/http/httputil.go:61
Function
Index
(ctx dotweb.Context)
httpserver/handlers/defaulthandler.go:13
Function
Info
(log string, logTarget string)
framework/log/logger.go:39
Function
InitAppInfo
init appgroupinfo
message/usergroup.go:67
Function
InitConfig
初始化配置文件
config/appconfig.go:36
Function
Marshal
将传入对象转换为json字符串
framework/json/jsonutil.go:17
Function
Memstate
(ctx dotweb.Context)
httpserver/handlers/defaulthandler.go:21
Function
NewGuid
()
httpserver/www/js/longweb.js:96
Function
NewInfluxdbData
()
repository/influxdbimpl.go:24
Function
NewTask
传入Name创建Taskinfo
framework/task/taskmanager.go:49
Function
OnPolling
*longpoll统一处理入口 - 兼容Hijack与HttpRequest Author: panxinming CreateTime: 2017-01-25 13:00 入参: jsonpcallback: 应用定义jsonp-callback函数名,如果不传入默认为callback appid
httpserver/handlers/pollhandler.go:46
Function
OnWebSocket
websocket统一处理入口
httpserver/handlers/wshandler.go:21
Function
ReSetServer
()
httpserver/server.go:47
Function
ReStartAllTask
()
framework/task/taskmanager.go:93
Function
ReStartMessageService
重新启动消息监听与消费服务
message/message.go:29
Function
RegisterTask
(task *TaskInfo)
framework/task/taskmanager.go:77
Function
RemoveTask
(taskName string)
framework/task/taskmanager.go:83
Function
SendMessage
推送消息 result: 0:ok -1:not allow ip -2:message is empty -10001:message format error -10002:this appid no have permission
httpserver/handlers/apihandler.go:16
Function
SetBaseDir
(baseDir string)
config/appconfig.go:31
Function
Slice_chunk
(slice []interface{}, size int)
framework/slice/slices.go:86
next →
1–100 of 133, ranked by callers