Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/C4o/Juggler
/ functions
Functions
114 in github.com/C4o/Juggler
⨍
Functions
114
◇
Types & classes
21
↓ 42 callers
Function
Printer
(level int, format string, v ...interface{})
logger/printer.go:27
↓ 11 callers
Method
Close
()
iploc/resource.go:11
↓ 10 callers
Method
ReadPosition
(*Parser) ReadPosition 读取3字节的偏移位置
iploc/parser.go:157
↓ 9 callers
Method
String
()
iploc/ip.go:30
↓ 8 callers
Function
ParseUintIP
(u uint32)
iploc/ip.go:79
↓ 7 callers
Method
ReadByte
(*Parser) ReadByte 读取1字节,用来识别重定向模式
iploc/parser.go:133
↓ 6 callers
Method
ReadText
(*Parser) ReadText 读取国家地区数据,以0x00结尾
iploc/parser.go:168
↓ 5 callers
Method
ReadBytes
(*Parser) ReadBytes 读取n字节并翻转
iploc/parser.go:143
↓ 5 callers
Method
Uint
()
iploc/ip.go:34
↓ 4 callers
Method
Compare
Compare like bytes.Compare The result will be 0 if == a, -1 if < a, and +1 if > a.
iploc/ip.go:40
↓ 4 callers
Function
ParseBytesIP
(b []byte)
iploc/ip.go:74
↓ 4 callers
Method
ReadRegionString
(offset int64)
iploc/parser.go:202
↓ 4 callers
Method
ReadString
(offset int64)
iploc/parser.go:186
↓ 4 callers
Method
readRegionRaw
(offset int64)
iploc/parser.go:235
↓ 3 callers
Function
NewParserRes
(res resReadCloser, size uint32)
iploc/parser.go:89
↓ 3 callers
Method
ReadAt
(b []byte, off int64)
iploc/resource.go:10
↓ 3 callers
Method
Size
()
iploc/parser.go:124
↓ 3 callers
Method
find
(ip IP)
iploc/iploc.go:136
↓ 3 callers
Method
new
新建虚拟机,注册若干预设定变量和模块
golua/luavm.go:50
↓ 2 callers
Method
Find
(rawIP string)
iploc/iploc.go:114
↓ 2 callers
Method
InIP
(ip IP)
iploc/detail.go:21
↓ 2 callers
Method
IndexRange
(*Parser) IndexRange calls the iterator for every index within the range (i, start, end, Pos) until iterator returns false.
iploc/parser.go:290
↓ 2 callers
Method
Load
(ConfPath string)
config/conf.go:38
↓ 2 callers
Function
NewParser
(qqwrySrc string, preload bool)
iploc/parser.go:60
↓ 2 callers
Function
NewPrinter
(LogPath string)
logger/printer.go:16
↓ 2 callers
Function
ParseIP
(s string)
iploc/ip.go:44
↓ 2 callers
Method
Send
(data []*sarama.ProducerMessage, client sarama.SyncProducer)
web/kafka.go:35
↓ 2 callers
Method
Topic
判断topic是否存在
web/kafka.go:112
↓ 2 callers
Function
compile
缓存re
golua/re.go:17
↓ 2 callers
Method
compileLua
编译lua脚本并缓存方法
golua/luavm.go:150
↓ 2 callers
Function
logging
(level int, format string, v ...interface{})
logger/printer.go:40
↓ 2 callers
Function
newIndexes
(p *Parser)
iploc/indexes.go:70
↓ 2 callers
Function
pushErr
(L *lua.LState, err error)
golua/utils.go:10
↓ 1 callers
Method
Count
()
iploc/parser.go:120
↓ 1 callers
Method
Count
()
iploc/iploc.go:102
↓ 1 callers
Method
Init
初始化若干个虚拟机放入channel待用
golua/luavm.go:75
↓ 1 callers
Method
LoadHtml
(path string)
golua/html.go:12
↓ 1 callers
Function
Logging
()
web/logging.go:21
↓ 1 callers
Function
LuaWorker
每个请求的worker
golua/luavm.go:179
↓ 1 callers
Method
Monitor
(ConfPath string)
config/conf.go:54
↓ 1 callers
Method
MonitorHtml
()
golua/html.go:39
↓ 1 callers
Function
Open
Open 生成索引,查询速度快
iploc/iploc.go:27
↓ 1 callers
Function
OpenWithoutIndexes
OpenWithoutIndexes 无索引,不预载文件,打开速度快,但查询速度慢
iploc/iploc.go:39
↓ 1 callers
Method
RChan
读取channel并发送
web/kafka.go:47
↓ 1 callers
Method
ReadAt
(b []byte, off int64)
iploc/resource.go:31
↓ 1 callers
Method
ReadLocationRaw
ReadLocationRaw 用于导出或索引
iploc/parser.go:247
↓ 1 callers
Method
ReadRegion
(*Parser) ReadRegion 读取地区数据,处理可能的重定向
iploc/parser.go:192
↓ 1 callers
Method
Shutdown
结束后关闭所有channel中的虚拟机
golua/luavm.go:68
↓ 1 callers
Method
Start
初始化
web/kafka.go:154
↓ 1 callers
Method
Thread
启动线程
web/kafka.go:143
↓ 1 callers
Function
WebServer
(addr string, gzipType int)
web/web.go:20
↓ 1 callers
Method
digLocation
(offset int64)
iploc/parser.go:206
↓ 1 callers
Method
fill
()
iploc/detail.go:37
↓ 1 callers
Method
get
拿走channel中的虚拟机
golua/luavm.go:35
↓ 1 callers
Method
getFn
获取方法供使用
golua/luavm.go:96
↓ 1 callers
Method
getLocation
(item indexItem)
iploc/iploc.go:184
↓ 1 callers
Function
goCloneSite
(url string)
golua/clone.go:32
↓ 1 callers
Method
indexOf
(u uint32)
iploc/indexes.go:48
↓ 1 callers
Method
loadPlugins
加载和规则
golua/luavm.go:105
↓ 1 callers
Function
parseLocation
(country, region []byte)
iploc/detail.go:115
↓ 1 callers
Method
put
把用完的虚拟机放回channel
golua/luavm.go:45
↓ 1 callers
Function
registerGinContextUserData
注册gin.context的userdata区域并填充日志数据
golua/loader.go:36
↓ 1 callers
Function
registerRock
注册Request到lua虚拟机
golua/loader.go:11
↓ 1 callers
Method
seek
(ip IP)
iploc/iploc.go:155
Method
Bytes
()
iploc/detail.go:17
Method
Bytes
()
iploc/detail.go:111
Method
Bytes
()
iploc/ip.go:17
Method
Close
()
iploc/parser.go:116
Method
Close
Close close the file descriptor, if there is no preload
iploc/iploc.go:95
Method
Close
()
iploc/resource.go:44
Function
Find
Find shorthand for iploc.Open.Find not be preload file and without indexed
iploc/iploc.go:17
Method
FindIP
(ip IP)
iploc/iploc.go:106
Method
FindUint
(uintIP uint32)
iploc/iploc.go:110
Method
In
(rawIP string)
iploc/detail.go:25
Method
InUint
(uintIP uint32)
iploc/detail.go:33
Method
Less
(than btree.Item)
iploc/indexes.go:21
Method
Less
(than btree.Item)
iploc/indexes.go:33
Function
Load
(b []byte)
iploc/iploc.go:48
Function
LoadWithoutIndexes
(b []byte)
iploc/iploc.go:69
Method
Range
(iterator rangeIterator)
iploc/iploc.go:122
Method
Read
(b []byte)
iploc/resource.go:9
Method
Read
(b []byte)
iploc/resource.go:19
Method
Reader
()
iploc/parser.go:128
Method
ReverseBytes
()
iploc/ip.go:21
Method
String
()
iploc/detail.go:13
Method
String
()
iploc/detail.go:107
Function
b64decode
(L *lua.LState)
golua/cryto.go:45
Function
b64encode
(L *lua.LState)
golua/cryto.go:40
Function
clone
(L *lua.LState)
golua/clone.go:16
Function
find
匹配结果返回 string, error
golua/re.go:25
Function
getHeader
(L *lua.LState)
golua/request.go:14
Function
getHtml
(L *lua.LState)
golua/html.go:75
Method
getLocation
(i, j uint32)
iploc/indexes.go:66
Function
getReqVar
(L *lua.LState)
golua/request.go:20
Function
handler
gin路由处理函数
web/router.go:10
Function
init
()
iploc/indexes.go:107
Function
logging
(L *lua.LState)
golua/log.go:10
Function
luaCrypto
注册加密相关方法
golua/loader.go:59
Function
luaRandom
注册随机数方法
golua/loader.go:67
Function
luaRe
注册re相关方法到lua虚拟机
golua/loader.go:42
next →
1–100 of 114, ranked by callers