Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Golangltd/LollipopGo
/ functions
Functions
247 in github.com/Golangltd/LollipopGo
⨍
Functions
247
◇
Types & classes
44
↓ 1 callers
Function
rpcRegister
()
network/rpc.go:90
↓ 1 callers
Method
sendlogServer
* 1. 注册结构 func rpcRegister() { _ = rpc.Register(new(LogSt)) } 2. 函数逻辑 func (r *LogSt) SaveMongoDB(data log.LogSt, reply *bool) error
log/LogService.go:111
Method
AddCount
累加数据
util/map.go:123
Function
Bin
()
network/tcp.go:24
Function
CheckAuth
(ag gate.Agent)
leaf/utils.go:54
Function
CheckErr_LollipopGO
------------------------------------------------------------------------------
util/util.go:71
Method
CheckModify
CheckModify return if modified and last modify time
tools/fs/config.go:36
Function
Close
()
log/log.go:151
Function
Combinations
从数组中选出m个任意组合 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
tools/num/num.go:150
Function
CombinationsInt32
从数组中选出m个任意组合,Int32版 算法:先固定某一位的数字,再遍历其他位的可能性,递归此过程
tools/num/num.go:183
Function
ContainInt32s
是否完全包含elem,如果elem中有重复的元素,按两次计算
tools/collection/array.go:60
Function
ConvertToFloat64
ConvertToFloat64 guess Num format and convert to Float64
tools/num/num.go:26
Function
ConvertToInt
ConvertToInt guess Num format and convert to Int
tools/num/num.go:10
Function
CopyJsonObject
用json序列化的方法深拷贝,比反射更慢;有时候需要用json的tag去除某些字段充当RO 这时候可以用该函数
tools/deepcopy/json.go:10
Function
CountSyncMap
(m *sync.Map)
tools/collection/map.go:5
Method
Del
(key interface{})
util/map.go:62
Function
DeleteInt32
只会删除第一个相等的元素
tools/collection/array.go:32
Method
Difference
差集
tools/collection/set.go:77
Function
DirectProduct
任意多个集合的笛卡尔积(直积) 回溯法遍历所有可能性
tools/num/num.go:216
Function
DirectProductInt32
任意多个集合的笛卡尔积(直积),Int32版 回溯法遍历所有可能性
tools/num/num.go:245
Function
Duplicate
(a interface{})
util/slice.go:11
Function
Example
()
log/example_test.go:9
Function
ExampleTimer
()
timer/exanple_test.go:7
Function
Fatal
(format string, a ...interface{})
log/log.go:147
Function
Get
发送GET请求 url:请求地址 response:请求返回的内容
network/http.go:16
Method
Get
(key string)
tools/mem/ttl_cache.go:51
Method
GetBool
(key string)
tools/jsonutils/object.go:102
Method
GetBoolDefault
(key string, defaultValue bool)
tools/jsonutils/object.go:117
Method
GetClientConnRPC
()
network/rpc.go:38
Method
GetConfig
重载配置
tools/fs/config.go:10
Function
GetConfigDir
约定程序二进制文件和_config文件夹在同一层 否则逐层往上找直到找到(方便进行单元测试)
tools/misc.go:16
Method
GetFloat64
(key string)
tools/jsonutils/object.go:44
Method
GetFloat64Default
(key string, defaultValue float64)
tools/jsonutils/object.go:59
Method
GetJsonArray
(key string)
tools/jsonutils/object.go:131
Method
GetJsonObject
(key string)
tools/jsonutils/object.go:146
Function
GetNowTs
()
tools/tz/tz.go:51
Function
GetNowUnixNano_LollipopGo
单位纳秒,打印结果:1491888244752784461
util/util.go:98
Function
GetNowUnix_LollipopGo
单位s ,打印结果:1491888244
util/util.go:93
Function
GetNowtimeMD5_LollipopGO
()
util/util.go:86
Method
GetObjectId
()
tools/jsonutils/object.go:35
Method
GetPathModifyTime
GetPathLastModifyTime
tools/fs/config.go:28
Method
GetString
(key string)
tools/jsonutils/object.go:73
Method
GetStringDefault
(key string, defaultValue string)
tools/jsonutils/object.go:88
Function
GetTime_LollipopGO
()
util/util.go:78
Function
GetTodayStr
()
tools/tz/tz.go:19
Method
HandleCltProtocol2
(protocol2 interface{}, ProtocolData map[string]interface{}, Connection interface{})
global_Interface/Interface_impl.go:16
Method
HandleCltProtocolPB2
(protocol int32, protocol2 int32, ProtocolData []byte, Connection interface{})
global_Interface/Interface_impl.go:23
Method
HasKey
(key string)
tools/jsonutils/object.go:19
Method
HasNotNilKey
(key string)
tools/jsonutils/object.go:26
Function
HitRate100
是否命中百分比
tools/sample/rand.go:121
Function
HitRate100
是否命中百分比
tools/num/random.go:6
Function
HitRate1000
是否命中千分比
tools/sample/rand.go:126
Function
HitRate1000
是否命中千分比
tools/num/random.go:11
Function
HitRate10000
是否命中万分比
tools/sample/rand.go:131
Function
HitRate10000
是否命中万分比
tools/num/random.go:16
Function
HttpPost
post
network/http.go:72
Function
InitConfigFilter
加载词库
tools/DFA/dfa.go:23
Function
InitConnection
(wsConn *websocket.Conn)
network/websocket.go:33
Function
InitNet
初始化网络
network/initNet.go:26
Function
InitRand
初始化random
tools/sample/rand.go:10
Function
Int2str_LollipopGo
(data int)
util/strconv.go:16
Method
Intersect
交集
tools/collection/set.go:49
Function
IsFile
判断所给路径是否为文件
tools/fs/file.go:43
Function
IsSameDay
IsSameDay check if two time is same day locally
tools/tz/tz.go:43
Function
LocalNow
()
tools/tz/tz.go:59
Method
LockRange
(f func(interface{}, interface{}))
util/map.go:116
Function
LollipopGoFilterCheck
屏蔽字操作,这个方法就是外部调用的入口方法
tools/DFA/dfa.go:76
Method
LollipopGo_RLockRange
并发安全读取
util/map.go:92
Function
MainListener
---------------------------------------------------------------------------------------------------------------------- RPC 服务器调用
network/rpc.go:68
Function
MaxInt
(x, y int)
tools/num/num.go:57
Function
MaxInt32
(x, y int32)
tools/num/num.go:64
Function
MaxInt64
(x, y int64)
tools/num/num.go:71
Function
MinInt
(x, y int)
tools/num/num.go:36
Function
MinInt32
(x, y int32)
tools/num/num.go:43
Function
MinInt64
(x, y int64)
tools/num/num.go:50
Function
Minimum
*//------------------------------------------------------------------------------ // 例子已经写在简书:https://www.jianshu.com/p/e30a9db07da0 // 详见《彬哥Go语言笔记》 f
util/sort.go:35
Function
NewAlias
新建一个抽样器,weightList是权重列表,src是随机数种子
tools/sample/alias.go:32
Function
NewGate
(wsAddr string, chanRPC *chanrpc.Server)
leaf/utils.go:40
Function
NewLRUCache
maxSize: 缓存的最大数量
tools/mem/lru_cache.go:37
Function
NewLogService
(served string,serviceurl string)
log/LogService.go:35
Function
NewMongoSession
(host string)
tools/database/mgo.go:8
Function
NewMysqlConn
(host string, isDebug bool)
tools/database/gorm.go:34
Function
NewRedisPool
(host string, pwd string, db int)
tools/database/redigo.go:9
Function
NewSkeleton
()
leaf/utils.go:29
Function
NewTTLCache
aliveSeconds: 缓存有效期,capacity: 缓存容量,注意合理估计capacity为未过期元素的最大数量
tools/mem/ttl_cache.go:20
Method
Next
Next returns the next random value from the discrete distribution
tools/sample/alias.go:85
Function
Permutations
全排列
tools/num/num.go:120
Method
PlayerSendMessage
func (this *OnlineUser) writeLoop() { defer func() { if err := recover(); err != nil { strerr := fmt.Sprintf("%s", err) glog.Info("异常捕获:", st
network/websocket.go:158
Method
PlayerSendMessage
(senddata interface{})
global_Interface/Interface_impl.go:17
Function
PlayerSendMessageOfExit
(conn *websocket.Conn, senddata interface{}, strServerID string)
network/websocket.go:259
Function
PlayerSendMessageOfProxy
(conn *websocket.Conn, senddata interface{}, strServerID string)
network/websocket.go:230
Method
PlayerSendMessagePB
(senddata []byte)
global_Interface/Interface_impl.go:24
Function
PlayerSendToProxyServer
------------------------------------------------------------------------------
network/websocket.go:205
Function
PlayerSendToServerPB
(conn *websocket.Conn, data []byte)
network/websocketPB.go:135
Function
Post
发送POST请求 url:请求地址,data:POST请求提交的数据,contentType:请求体格式,如:application/json content:请求放回的内容
network/http.go:45
Method
Print
(values ...interface{})
tools/database/gorm.go:16
Method
RLockRange
枚举数据
util/map.go:110
Function
RandChoice
(array []int, n int)
tools/sample/rand.go:88
Function
RandChoiceInt32
(array []int32, n int)
tools/sample/rand.go:72
Function
RandGroup_LollipopGo
(p ...uint32)
util/rand.go:12
← previous
next →
101–200 of 247, ranked by callers