Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/xxjwxc/public
/ functions
Functions
2,676 in github.com/xxjwxc/public
⨍
Functions
2,676
◇
Types & classes
629
↓ 5 callers
Method
AddListHandler
AddListHandler add list handler
mycui/select.go:69
↓ 5 callers
Function
BuildDir
BuildDir 创建目录
tools/file.go:24
↓ 5 callers
Method
CreatedOn
CreatedOn returns when this item was added to the cache.
mycache/cache2go/cacheitem.go:85
↓ 5 callers
Method
Draw
()
mycui/type.go:21
↓ 5 callers
Method
GetKey
()
myhwoss/obs/model_header.go:18
↓ 5 callers
Method
GetLabel
()
mycui/type.go:16
↓ 5 callers
Method
GetParameterChoice
()
mytriton/grpc-client/grpc_service.pb.go:744
↓ 5 callers
Function
HmacSha256
HmacSha256 get hmac sha256 value if input
myhwoss/obs/util.go:152
↓ 5 callers
Function
Int64ToString
Int64ToString converts int64 value to string value
myhwoss/obs/util.go:111
↓ 5 callers
Function
NewCacheItem
NewCacheItem returns a newly created CacheItem. Parameter key is the item's cache-key. Parameter lifeSpan determines after which time period without a
mycache/cache2go/cacheitem.go:43
↓ 5 callers
Function
ParsePutObjectOutput
ParsePutObjectOutput sets PutObjectOutput field values with response headers
myhwoss/obs/convert.go:741
↓ 5 callers
Function
ReadAll
ReadAll read string from clipboard
myclipboard/clipboard/clipboard.go:9
↓ 5 callers
Method
ServerLive
@@ .. cpp:var:: rpc ServerLive(ServerLiveRequest) returns @@ (ServerLiveResponse) @@ @@ Check liveness of the inference server. @@
mytriton/grpc-client/grpc_service_grpc.pb.go:79
↓ 5 callers
Method
Sign
(timestamp int64)
myding/myding.go:77
↓ 5 callers
Function
StringContains
StringContains replaces subStr in src with subTranscoding and returns the new string
myhwoss/obs/util.go:42
↓ 5 callers
Function
WriteAll
WriteAll write string to clipboard
myclipboard/clipboard/clipboard.go:14
↓ 5 callers
Function
callers
()
errors/stack.go:133
↓ 5 callers
Method
checkParamsWithObjectKey
(objectKey string)
myhwoss/obs/http.go:60
↓ 5 callers
Method
doActionWithBucketAndKeyWithProgress
(action, method, bucketName, objectKey string, input ISerializable, output IBaseModel, extensions []extensionO
myhwoss/obs/http.go:92
↓ 5 callers
Method
getIndexFrom
getIndexFrom 根据用户key返回其数据在visitorRecords中的下标
ratelimit/single_rule.go:85
↓ 5 callers
Function
isDebugLogEnabled
()
myhwoss/obs/log.go:170
↓ 5 callers
Method
log
Internal logging method for convenience.
mycache/cache2go/cachetable.go:410
↓ 4 callers
Method
AddRule
* AddRule 增加用户访问控制策略,例: r.AddRule(time.Minute*5, 20) 在5分钟内每个用户最多允许访问20次 r.AddRule(time.Minute*30, 50) 在30分钟内每个用户最多允许访问50次 r.AddRule(time.Hour*24, 2
ratelimit/rule.go:38
↓ 4 callers
Method
Base32
Base32 uses the z-base-32 character set but encodes and decodes similar to base58, allowing it to create an even smaller result string. NOTE: There ar
myglobal/snowflake/snowflake.go:201
↓ 4 callers
Method
Base58
Base58 returns a base58 string of the snowflake ID
myglobal/snowflake/snowflake.go:250
↓ 4 callers
Function
Cause
Cause returns the underlying cause of the error, if possible. An error value has a cause if it implements the following interface: type causer interf
errors/errors.go:270
↓ 4 callers
Method
Debug
(a ...interface{})
mylog/mylog.go:10
↓ 4 callers
Method
EqualAt
EqualAt 获取相等位置下标,不重复返回-1
mysort/common.go:13
↓ 4 callers
Function
GetDay0
GetDay0 获取给定日期的零点时间
tools/timeTools.go:75
↓ 4 callers
Method
GetEncryption
()
myhwoss/obs/model_header.go:17
↓ 4 callers
Function
GetJSONStr
"github.com/ant0ine/go-json-rest/rest" func GetRequestJsonObj(r *rest.Request, v interface{}) error { //添加支持json 操作 body, err := ioutil.ReadAll(r.Bo
tools/json.go:55
↓ 4 callers
Method
GetObjectMetadata
GetObjectMetadata gets object metadata. You can use this API to send a HEAD request to the object of a specified bucket to obtain its metadata.
myhwoss/obs/client_object.go:190
↓ 4 callers
Method
GetParameterChoice
()
mytriton/grpc-client/grpc_service.pb.go:2279
↓ 4 callers
Function
GetTimeStr
GetTimeStr 获取时间字符串
tools/timeTools.go:170
↓ 4 callers
Function
GetUtcTime
GetUtcTime 获取本地时间戳
tools/timeTools.go:10
↓ 4 callers
Function
HmacSha1
HmacSha1 gets hmac sha1 value of input
myhwoss/obs/util.go:142
↓ 4 callers
Method
ID
()
mywebsocket/socket.go:49
↓ 4 callers
Method
Info
(a ...interface{})
mylog/mylog.go:12
↓ 4 callers
Method
ModelInfer
@@ .. cpp:var:: rpc ModelInfer(ModelInferRequest) returns @@ (ModelInferResponse) @@ @@ Perform inference using a specific model. @@
mytriton/grpc-client/grpc_service_grpc.pb.go:109
↓ 4 callers
Function
New
New 创建
myqueue/myqueue.go:24
↓ 4 callers
Function
NewCache
NewCache 初始化一个cache,cachename 缓存名字
mycache/mycache.go:37
↓ 4 callers
Method
NotFoundAdd
NotFoundAdd checks whether an item is not yet cached. Unlike the Exists method this also adds data if the key could not be found.
mycache/cache2go/cachetable.go:264
↓ 4 callers
Function
ParseBytes
ParseBytes converts a byte slice into a snowflake ID
myglobal/snowflake/snowflake.go:306
↓ 4 callers
Function
ParseGetObjectMetadataOutput
ParseGetObjectMetadataOutput sets GetObjectMetadataOutput field values with response headers
myhwoss/obs/convert.go:691
↓ 4 callers
Function
ParseResponseToObsError
ParseResponseToObsError gets obsError from OBS
myhwoss/obs/convert.go:989
↓ 4 callers
Method
Pop
Pop 取出队列,(阻塞模式)
myqueue/myqueue.go:33
↓ 4 callers
Method
Push
Push 插入队列,非阻塞
myqueue/myqueue.go:127
↓ 4 callers
Method
Read
(p []byte)
myssh/reader.go:25
↓ 4 callers
Method
RemainingVisits
* RemainingVisits 某用户剩余访问次数,例:RemainingVisits("username") */
ratelimit/rule.go:100
↓ 4 callers
Method
SetAboutToDeleteItemCallback
SetAboutToDeleteItemCallback configures a callback, which will be called every time an item is about to be removed from the cache.
mycache/cache2go/cachetable.go:95
↓ 4 callers
Method
SetAboutToExpireCallback
SetAboutToExpireCallback configures a callback, which will be called right before the item is about to be removed from the cache.
mycache/cache2go/cacheitem.go:111
↓ 4 callers
Method
SetReadDeadline
(t time.Time)
myhwoss/obs/http.go:667
↓ 4 callers
Method
Stop
Stop 发送停止信号
mynotify/mynotify.go:46
↓ 4 callers
Method
Stop
()
myrocketmq/myrocketmq.go:104
↓ 4 callers
Function
StrToTime
GetUtcDay0 获取offset 0点时间 func GetUtcDay0(now time.Time, timeZone *time.Location) int64 { tm := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0,
tools/timeTools.go:94
↓ 4 callers
Method
String
()
message/errcode_string.go:190
↓ 4 callers
Method
Value
添加一个元素
myredis/myredis.go:16
↓ 4 callers
Function
WriteFile
WriteFile 写入文件
tools/file.go:97
↓ 4 callers
Method
WriteMessage
(byteMessage []byte)
mywebsocket/socket.go:57
↓ 4 callers
Function
abortTask
(bucket, key, uploadID string, obsClient *ObsClient, extensions []extensionOptions)
myhwoss/obs/transfer.go:249
↓ 4 callers
Method
broad
阔张
fractional/fractional.go:37
↓ 4 callers
Method
dealIdent
(astPkg *ast.Package, exp *ast.Ident, info *mydoc.ElementInfo, structName string)
myast/myast.go:199
↓ 4 callers
Method
dealSelectorExpr
(exp *ast.SelectorExpr, info *mydoc.ElementInfo, importMP map[string]string)
myast/myast.go:183
↓ 4 callers
Method
deleteExpired
deleteExpired 删除过期数据
ratelimit/single_rule.go:165
↓ 4 callers
Function
getCredential
(ak, region, shortDate string)
myhwoss/obs/auth.go:319
↓ 4 callers
Method
getKey
(key interface{})
myredis1/myredis.go:55
↓ 4 callers
Method
getLastViewPosition
()
mycui/form.go:370
↓ 4 callers
Function
getSignature
(stringToSign, sk, region, shortDate string)
myhwoss/obs/auth.go:341
↓ 4 callers
Method
newSession
newSession new session
myssh/myssh.go:202
↓ 4 callers
Method
offset
压缩 整理
fractional/fractional.go:43
↓ 4 callers
Function
setHeadersNext
(headers map[string][]string, header string, headerNext string, headerValue []string, isObs bool)
myhwoss/obs/trait_base.go:38
↓ 4 callers
Function
setSseHeader
(headers map[string][]string, sseHeader ISseHeader, sseCOnly bool, isObs bool)
myhwoss/obs/trait_base.go:140
↓ 4 callers
Function
stripSpace
stripSpace Strip space
wordsfilter/words_filter.go:111
↓ 4 callers
Function
updateCheckpointFile
(fc interface{}, checkpointFilePath string)
myhwoss/obs/transfer.go:138
↓ 3 callers
Method
Add
Add adds a key/value pair to the cache. Parameter key is the item's cache-key. Parameter lifeSpan determines after which time period without an access
mycache/cache2go/cachetable.go:201
↓ 3 callers
Method
AddAddedItemCallback
AddAddedItemCallback appends a new callback to the addedItem queue
mycache/cache2go/cachetable.go:80
↓ 3 callers
Method
AddHandlerOnly
(Key, Handler)
mycui/type.go:23
↓ 3 callers
Function
CheckParam
CheckParam 检测参数
tools/check.go:12
↓ 3 callers
Method
Clear
删除一个
myredis/myredis.go:19
↓ 3 callers
Method
Count
Count returns how many items are currently stored in the cache.
mycache/cache2go/cachetable.go:43
↓ 3 callers
Function
Debug
Debug level debug
mylog/mylog.go:59
↓ 3 callers
Function
ErrorString
ErrorString 打印错误信息
mylog/mylog.go:99
↓ 3 callers
Method
Execute
(t Task)
myhwoss/obs/pool.go:161
↓ 3 callers
Function
Gcd
Gcd 最大公约数:(辗转相除法)
mymath/mymath.go:6
↓ 3 callers
Function
GetContentType
(key string)
myhwoss/obs/util.go:588
↓ 3 callers
Method
GetInputDataType
()
mytriton/grpc-client/model_config.pb.go:4837
↓ 3 callers
Method
GetKeyMD5
GetKeyMD5 gets the KeyMD5 field value from SseCHeader
myhwoss/obs/trait_base.go:129
↓ 3 callers
Method
GetMaxWorkerCnt
()
myhwoss/obs/pool.go:163
↓ 3 callers
Function
GetModelPath
GetModelPath 获取程序运行目录
tools/file.go:77
↓ 3 callers
Method
GetParameterChoice
()
mytriton/grpc-client/grpc_service.pb.go:4483
↓ 3 callers
Method
GetParameterChoice
()
mytriton/grpc-client/grpc_service.pb.go:4593
↓ 3 callers
Method
GetPolicyChoice
()
mytriton/grpc-client/model_config.pb.go:1570
↓ 3 callers
Method
GetPosition
()
mycui/type.go:17
↓ 3 callers
Method
GetSchedulingChoice
()
mytriton/grpc-client/model_config.pb.go:2915
↓ 3 callers
Method
GetSelectedOpts
GetSelectedOpts get selected options
mycui/form.go:211
↓ 3 callers
Function
GetService
获取服务名
dev/dev.go:36
↓ 3 callers
Function
Hex
Hex wrapper of hex.EncodeToString
myhwoss/obs/util.go:216
↓ 3 callers
Method
IntBytes
IntBytes returns an array of bytes of the snowflake ID, encoded as a big endian integer.
myglobal/snowflake/snowflake.go:313
↓ 3 callers
Method
IsExist
获取一个value
myredis/myredis.go:17
↓ 3 callers
Function
IsInternalType
IsInternalType 是否是内部类型
tools/check.go:60
← previous
next →
101–200 of 2,676, ranked by callers