MCPcopy Create free account

hub / github.com/Golangltd/LollipopGo / functions

Functions247 in github.com/Golangltd/LollipopGo

↓ 1 callersFunctionrpcRegister
()
network/rpc.go:90
↓ 1 callersMethodsendlogServer
* 1. 注册结构 func rpcRegister() { _ = rpc.Register(new(LogSt)) } 2. 函数逻辑 func (r *LogSt) SaveMongoDB(data log.LogSt, reply *bool) error
log/LogService.go:111
MethodAddCount
累加数据
util/map.go:123
FunctionBin
()
network/tcp.go:24
FunctionCheckAuth
(ag gate.Agent)
leaf/utils.go:54
FunctionCheckErr_LollipopGO
------------------------------------------------------------------------------
util/util.go:71
MethodCheckModify
CheckModify return if modified and last modify time
tools/fs/config.go:36
FunctionClose
()
log/log.go:151
FunctionCombinations
从数组中选出m个任意组合 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
tools/num/num.go:150
FunctionCombinationsInt32
从数组中选出m个任意组合,Int32版 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
tools/num/num.go:183
FunctionContainInt32s
是否完全包含elem,如果elem中有重复的元素,按两次计算
tools/collection/array.go:60
FunctionConvertToFloat64
ConvertToFloat64 guess Num format and convert to Float64
tools/num/num.go:26
FunctionConvertToInt
ConvertToInt guess Num format and convert to Int
tools/num/num.go:10
FunctionCopyJsonObject
用json序列化的方法深拷贝,比反射更慢;有时候需要用json的tag去除某些字段充当RO 这时候可以用该函数
tools/deepcopy/json.go:10
FunctionCountSyncMap
(m *sync.Map)
tools/collection/map.go:5
MethodDel
(key interface{})
util/map.go:62
FunctionDeleteInt32
只会删除第一个相等的元素
tools/collection/array.go:32
MethodDifference
差集
tools/collection/set.go:77
FunctionDirectProduct
任意多个集合的笛卡尔积(直积) 回溯法遍历所有可能性
tools/num/num.go:216
FunctionDirectProductInt32
任意多个集合的笛卡尔积(直积),Int32版 回溯法遍历所有可能性
tools/num/num.go:245
FunctionDuplicate
(a interface{})
util/slice.go:11
FunctionExample
()
log/example_test.go:9
FunctionExampleTimer
()
timer/exanple_test.go:7
FunctionFatal
(format string, a ...interface{})
log/log.go:147
FunctionGet
发送GET请求 url:请求地址 response:请求返回的内容
network/http.go:16
MethodGet
(key string)
tools/mem/ttl_cache.go:51
MethodGetBool
(key string)
tools/jsonutils/object.go:102
MethodGetBoolDefault
(key string, defaultValue bool)
tools/jsonutils/object.go:117
MethodGetClientConnRPC
()
network/rpc.go:38
MethodGetConfig
重载配置
tools/fs/config.go:10
FunctionGetConfigDir
约定程序二进制文件和_config文件夹在同一层 否则逐层往上找直到找到(方便进行单元测试)
tools/misc.go:16
MethodGetFloat64
(key string)
tools/jsonutils/object.go:44
MethodGetFloat64Default
(key string, defaultValue float64)
tools/jsonutils/object.go:59
MethodGetJsonArray
(key string)
tools/jsonutils/object.go:131
MethodGetJsonObject
(key string)
tools/jsonutils/object.go:146
FunctionGetNowTs
()
tools/tz/tz.go:51
FunctionGetNowUnixNano_LollipopGo
单位纳秒,打印结果:1491888244752784461
util/util.go:98
FunctionGetNowUnix_LollipopGo
单位s ,打印结果:1491888244
util/util.go:93
FunctionGetNowtimeMD5_LollipopGO
()
util/util.go:86
MethodGetObjectId
()
tools/jsonutils/object.go:35
MethodGetPathModifyTime
GetPathLastModifyTime
tools/fs/config.go:28
MethodGetString
(key string)
tools/jsonutils/object.go:73
MethodGetStringDefault
(key string, defaultValue string)
tools/jsonutils/object.go:88
FunctionGetTime_LollipopGO
()
util/util.go:78
FunctionGetTodayStr
()
tools/tz/tz.go:19
MethodHandleCltProtocol2
(protocol2 interface{}, ProtocolData map[string]interface{}, Connection interface{})
global_Interface/Interface_impl.go:16
MethodHandleCltProtocolPB2
(protocol int32, protocol2 int32, ProtocolData []byte, Connection interface{})
global_Interface/Interface_impl.go:23
MethodHasKey
(key string)
tools/jsonutils/object.go:19
MethodHasNotNilKey
(key string)
tools/jsonutils/object.go:26
FunctionHitRate100
是否命中百分比
tools/sample/rand.go:121
FunctionHitRate100
是否命中百分比
tools/num/random.go:6
FunctionHitRate1000
是否命中千分比
tools/sample/rand.go:126
FunctionHitRate1000
是否命中千分比
tools/num/random.go:11
FunctionHitRate10000
是否命中万分比
tools/sample/rand.go:131
FunctionHitRate10000
是否命中万分比
tools/num/random.go:16
FunctionHttpPost
post
network/http.go:72
FunctionInitConfigFilter
加载词库
tools/DFA/dfa.go:23
FunctionInitConnection
(wsConn *websocket.Conn)
network/websocket.go:33
FunctionInitNet
初始化网络
network/initNet.go:26
FunctionInitRand
初始化random
tools/sample/rand.go:10
FunctionInt2str_LollipopGo
(data int)
util/strconv.go:16
MethodIntersect
交集
tools/collection/set.go:49
FunctionIsFile
判断所给路径是否为文件
tools/fs/file.go:43
FunctionIsSameDay
IsSameDay check if two time is same day locally
tools/tz/tz.go:43
FunctionLocalNow
()
tools/tz/tz.go:59
MethodLockRange
(f func(interface{}, interface{}))
util/map.go:116
FunctionLollipopGoFilterCheck
屏蔽字操作,这个方法就是外部调用的入口方法
tools/DFA/dfa.go:76
MethodLollipopGo_RLockRange
并发安全读取
util/map.go:92
FunctionMainListener
---------------------------------------------------------------------------------------------------------------------- RPC 服务器调用
network/rpc.go:68
FunctionMaxInt
(x, y int)
tools/num/num.go:57
FunctionMaxInt32
(x, y int32)
tools/num/num.go:64
FunctionMaxInt64
(x, y int64)
tools/num/num.go:71
FunctionMinInt
(x, y int)
tools/num/num.go:36
FunctionMinInt32
(x, y int32)
tools/num/num.go:43
FunctionMinInt64
(x, y int64)
tools/num/num.go:50
FunctionMinimum
*//------------------------------------------------------------------------------ // 例子已经写在简书:https://www.jianshu.com/p/e30a9db07da0 // 详见《彬哥Go语言笔记》 f
util/sort.go:35
FunctionNewAlias
新建一个抽样器,weightList是权重列表,src是随机数种子
tools/sample/alias.go:32
FunctionNewGate
(wsAddr string, chanRPC *chanrpc.Server)
leaf/utils.go:40
FunctionNewLRUCache
maxSize: 缓存的最大数量
tools/mem/lru_cache.go:37
FunctionNewLogService
(served string,serviceurl string)
log/LogService.go:35
FunctionNewMongoSession
(host string)
tools/database/mgo.go:8
FunctionNewMysqlConn
(host string, isDebug bool)
tools/database/gorm.go:34
FunctionNewRedisPool
(host string, pwd string, db int)
tools/database/redigo.go:9
FunctionNewSkeleton
()
leaf/utils.go:29
FunctionNewTTLCache
aliveSeconds: 缓存有效期,capacity: 缓存容量,注意合理估计capacity为未过期元素的最大数量
tools/mem/ttl_cache.go:20
MethodNext
Next returns the next random value from the discrete distribution
tools/sample/alias.go:85
FunctionPermutations
全排列
tools/num/num.go:120
MethodPlayerSendMessage
func (this *OnlineUser) writeLoop() { defer func() { if err := recover(); err != nil { strerr := fmt.Sprintf("%s", err) glog.Info("异常捕获:", st
network/websocket.go:158
MethodPlayerSendMessage
(senddata interface{})
global_Interface/Interface_impl.go:17
FunctionPlayerSendMessageOfExit
(conn *websocket.Conn, senddata interface{}, strServerID string)
network/websocket.go:259
FunctionPlayerSendMessageOfProxy
(conn *websocket.Conn, senddata interface{}, strServerID string)
network/websocket.go:230
MethodPlayerSendMessagePB
(senddata []byte)
global_Interface/Interface_impl.go:24
FunctionPlayerSendToProxyServer
------------------------------------------------------------------------------
network/websocket.go:205
FunctionPlayerSendToServerPB
(conn *websocket.Conn, data []byte)
network/websocketPB.go:135
FunctionPost
发送POST请求 url:请求地址,data:POST请求提交的数据,contentType:请求体格式,如:application/json content:请求放回的内容
network/http.go:45
MethodPrint
(values ...interface{})
tools/database/gorm.go:16
MethodRLockRange
枚举数据
util/map.go:110
FunctionRandChoice
(array []int, n int)
tools/sample/rand.go:88
FunctionRandChoiceInt32
(array []int32, n int)
tools/sample/rand.go:72
FunctionRandGroup_LollipopGo
(p ...uint32)
util/rand.go:12
← previousnext →101–200 of 247, ranked by callers