MCPcopy Create free account

hub / github.com/C4o/Juggler / functions

Functions114 in github.com/C4o/Juggler

↓ 42 callersFunctionPrinter
(level int, format string, v ...interface{})
logger/printer.go:27
↓ 11 callersMethodClose
()
iploc/resource.go:11
↓ 10 callersMethodReadPosition
(*Parser) ReadPosition 读取3字节的偏移位置
iploc/parser.go:157
↓ 9 callersMethodString
()
iploc/ip.go:30
↓ 8 callersFunctionParseUintIP
(u uint32)
iploc/ip.go:79
↓ 7 callersMethodReadByte
(*Parser) ReadByte 读取1字节,用来识别重定向模式
iploc/parser.go:133
↓ 6 callersMethodReadText
(*Parser) ReadText 读取国家地区数据,以0x00结尾
iploc/parser.go:168
↓ 5 callersMethodReadBytes
(*Parser) ReadBytes 读取n字节并翻转
iploc/parser.go:143
↓ 5 callersMethodUint
()
iploc/ip.go:34
↓ 4 callersMethodCompare
Compare like bytes.Compare The result will be 0 if == a, -1 if < a, and +1 if > a.
iploc/ip.go:40
↓ 4 callersFunctionParseBytesIP
(b []byte)
iploc/ip.go:74
↓ 4 callersMethodReadRegionString
(offset int64)
iploc/parser.go:202
↓ 4 callersMethodReadString
(offset int64)
iploc/parser.go:186
↓ 4 callersMethodreadRegionRaw
(offset int64)
iploc/parser.go:235
↓ 3 callersFunctionNewParserRes
(res resReadCloser, size uint32)
iploc/parser.go:89
↓ 3 callersMethodReadAt
(b []byte, off int64)
iploc/resource.go:10
↓ 3 callersMethodSize
()
iploc/parser.go:124
↓ 3 callersMethodfind
(ip IP)
iploc/iploc.go:136
↓ 3 callersMethodnew
新建虚拟机,注册若干预设定变量和模块
golua/luavm.go:50
↓ 2 callersMethodFind
(rawIP string)
iploc/iploc.go:114
↓ 2 callersMethodInIP
(ip IP)
iploc/detail.go:21
↓ 2 callersMethodIndexRange
(*Parser) IndexRange calls the iterator for every index within the range (i, start, end, Pos) until iterator returns false.
iploc/parser.go:290
↓ 2 callersMethodLoad
(ConfPath string)
config/conf.go:38
↓ 2 callersFunctionNewParser
(qqwrySrc string, preload bool)
iploc/parser.go:60
↓ 2 callersFunctionNewPrinter
(LogPath string)
logger/printer.go:16
↓ 2 callersFunctionParseIP
(s string)
iploc/ip.go:44
↓ 2 callersMethodSend
(data []*sarama.ProducerMessage, client sarama.SyncProducer)
web/kafka.go:35
↓ 2 callersMethodTopic
判断topic是否存在
web/kafka.go:112
↓ 2 callersFunctioncompile
缓存re
golua/re.go:17
↓ 2 callersMethodcompileLua
编译lua脚本并缓存方法
golua/luavm.go:150
↓ 2 callersFunctionlogging
(level int, format string, v ...interface{})
logger/printer.go:40
↓ 2 callersFunctionnewIndexes
(p *Parser)
iploc/indexes.go:70
↓ 2 callersFunctionpushErr
(L *lua.LState, err error)
golua/utils.go:10
↓ 1 callersMethodCount
()
iploc/parser.go:120
↓ 1 callersMethodCount
()
iploc/iploc.go:102
↓ 1 callersMethodInit
初始化若干个虚拟机放入channel待用
golua/luavm.go:75
↓ 1 callersMethodLoadHtml
(path string)
golua/html.go:12
↓ 1 callersFunctionLogging
()
web/logging.go:21
↓ 1 callersFunctionLuaWorker
每个请求的worker
golua/luavm.go:179
↓ 1 callersMethodMonitor
(ConfPath string)
config/conf.go:54
↓ 1 callersMethodMonitorHtml
()
golua/html.go:39
↓ 1 callersFunctionOpen
Open 生成索引,查询速度快
iploc/iploc.go:27
↓ 1 callersFunctionOpenWithoutIndexes
OpenWithoutIndexes 无索引,不预载文件,打开速度快,但查询速度慢
iploc/iploc.go:39
↓ 1 callersMethodRChan
读取channel并发送
web/kafka.go:47
↓ 1 callersMethodReadAt
(b []byte, off int64)
iploc/resource.go:31
↓ 1 callersMethodReadLocationRaw
ReadLocationRaw 用于导出或索引
iploc/parser.go:247
↓ 1 callersMethodReadRegion
(*Parser) ReadRegion 读取地区数据,处理可能的重定向
iploc/parser.go:192
↓ 1 callersMethodShutdown
结束后关闭所有channel中的虚拟机
golua/luavm.go:68
↓ 1 callersMethodStart
初始化
web/kafka.go:154
↓ 1 callersMethodThread
启动线程
web/kafka.go:143
↓ 1 callersFunctionWebServer
(addr string, gzipType int)
web/web.go:20
↓ 1 callersMethoddigLocation
(offset int64)
iploc/parser.go:206
↓ 1 callersMethodfill
()
iploc/detail.go:37
↓ 1 callersMethodget
拿走channel中的虚拟机
golua/luavm.go:35
↓ 1 callersMethodgetFn
获取方法供使用
golua/luavm.go:96
↓ 1 callersMethodgetLocation
(item indexItem)
iploc/iploc.go:184
↓ 1 callersFunctiongoCloneSite
(url string)
golua/clone.go:32
↓ 1 callersMethodindexOf
(u uint32)
iploc/indexes.go:48
↓ 1 callersMethodloadPlugins
加载和规则
golua/luavm.go:105
↓ 1 callersFunctionparseLocation
(country, region []byte)
iploc/detail.go:115
↓ 1 callersMethodput
把用完的虚拟机放回channel
golua/luavm.go:45
↓ 1 callersFunctionregisterGinContextUserData
注册gin.context的userdata区域并填充日志数据
golua/loader.go:36
↓ 1 callersFunctionregisterRock
注册Request到lua虚拟机
golua/loader.go:11
↓ 1 callersMethodseek
(ip IP)
iploc/iploc.go:155
MethodBytes
()
iploc/detail.go:17
MethodBytes
()
iploc/detail.go:111
MethodBytes
()
iploc/ip.go:17
MethodClose
()
iploc/parser.go:116
MethodClose
Close close the file descriptor, if there is no preload
iploc/iploc.go:95
MethodClose
()
iploc/resource.go:44
FunctionFind
Find shorthand for iploc.Open.Find not be preload file and without indexed
iploc/iploc.go:17
MethodFindIP
(ip IP)
iploc/iploc.go:106
MethodFindUint
(uintIP uint32)
iploc/iploc.go:110
MethodIn
(rawIP string)
iploc/detail.go:25
MethodInUint
(uintIP uint32)
iploc/detail.go:33
MethodLess
(than btree.Item)
iploc/indexes.go:21
MethodLess
(than btree.Item)
iploc/indexes.go:33
FunctionLoad
(b []byte)
iploc/iploc.go:48
FunctionLoadWithoutIndexes
(b []byte)
iploc/iploc.go:69
MethodRange
(iterator rangeIterator)
iploc/iploc.go:122
MethodRead
(b []byte)
iploc/resource.go:9
MethodRead
(b []byte)
iploc/resource.go:19
MethodReader
()
iploc/parser.go:128
MethodReverseBytes
()
iploc/ip.go:21
MethodString
()
iploc/detail.go:13
MethodString
()
iploc/detail.go:107
Functionb64decode
(L *lua.LState)
golua/cryto.go:45
Functionb64encode
(L *lua.LState)
golua/cryto.go:40
Functionclone
(L *lua.LState)
golua/clone.go:16
Functionfind
匹配结果返回 string, error
golua/re.go:25
FunctiongetHeader
(L *lua.LState)
golua/request.go:14
FunctiongetHtml
(L *lua.LState)
golua/html.go:75
MethodgetLocation
(i, j uint32)
iploc/indexes.go:66
FunctiongetReqVar
(L *lua.LState)
golua/request.go:20
Functionhandler
gin路由处理函数
web/router.go:10
Functioninit
()
iploc/indexes.go:107
Functionlogging
(L *lua.LState)
golua/log.go:10
FunctionluaCrypto
注册加密相关方法
golua/loader.go:59
FunctionluaRandom
注册随机数方法
golua/loader.go:67
FunctionluaRe
注册re相关方法到lua虚拟机
golua/loader.go:42
next →1–100 of 114, ranked by callers