Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThreeKing2018/goutil
/ functions
Functions
502 in github.com/ThreeKing2018/goutil
⨍
Functions
502
◇
Types & classes
56
↓ 1 callers
Method
CheckImageUrlAndExtension
检查图片
check/check.go:79
↓ 1 callers
Function
CmdOut
(name string, arg ...string)
systool/command.go:12
↓ 1 callers
Function
Debug
level: 1
logtool/logtool.go:62
↓ 1 callers
Function
DelJob
(jobID int)
cronjobs/init.go:21
↓ 1 callers
Method
DelJob
(jobID int)
cronjobs/cron.go:11
↓ 1 callers
Method
Detail
(num int)
cronjobs/tasklog.go:44
↓ 1 callers
Method
DetailJob
()
cronjobs/cron.go:12
↓ 1 callers
Function
Dir
get filepath dir name
filetool/filetool.go:28
↓ 1 callers
Function
DirsUnder
list dirs under dirPath
filetool/filetool.go:110
↓ 1 callers
Method
Exclude
(iplist []string)
goaddr/getaddr.go:31
↓ 1 callers
Function
Fetal
level: 5
logtool/logtool.go:90
↓ 1 callers
Function
FileMTime
get file modified time
filetool/filetool.go:92
↓ 1 callers
Function
FileToInt64
(file string)
filetool/convert.go:20
↓ 1 callers
Function
FileToUint64
(file string)
filetool/convert.go:7
↓ 1 callers
Function
GenerateRandomSeed
()
systool/system.go:112
↓ 1 callers
Function
GetCurrentDirectory
获取当前执行文件的目录
pwdtools/pwdtools.go:14
↓ 1 callers
Function
GetExecFilePath
获取执行文件的路径
pwdtools/pwdtools.go:37
↓ 1 callers
Method
GetRFC3339
获取RFC3339格式
time/gotime.go:83
↓ 1 callers
Function
GetRootDir
获取执行文件当前的目录 最后带/
pwdtools/pwdtools.go:25
↓ 1 callers
Method
GetYmd
获取年月日
time/gotime.go:34
↓ 1 callers
Method
HasNext
()
paginator/paginator.go:127
↓ 1 callers
Method
HasPrev
()
paginator/paginator.go:123
↓ 1 callers
Function
HttpGet
(url string)
curl/curl.go:8
↓ 1 callers
Method
Image
检查图片是否上传
check/check.go:67
↓ 1 callers
Function
InArray
判断元素是否包含
array/array.go:32
↓ 1 callers
Function
Info
level: 2
logtool/logtool.go:69
↓ 1 callers
Function
Int64ArrToInString
int64 change string
array/array.go:18
↓ 1 callers
Function
Int64ToBytes
int64 转 byte
convertor/byte.go:6
↓ 1 callers
Function
IntArrToInString
int 转 string
array/array.go:9
↓ 1 callers
Function
LocalIP
()
systool/system.go:31
↓ 1 callers
Function
Md5
生成MD5
strtool/strtool.go:17
↓ 1 callers
Function
Md5File
* 对文件去hash值 */ Md5File 文件md5值
hash/file.go:16
↓ 1 callers
Function
Md5String
* 对字符串取hash值 */ Md5String 获取字符串md5值
hash/string.go:6
↓ 1 callers
Function
New
()
config/viper.go:64
↓ 1 callers
Function
NewClient
(endpoint []string, Prefix, Delim string)
config/backend/etcdv3/etcdv3.go:21
↓ 1 callers
Function
NewCommandJob
(id int, name string, command string)
cronjobs/task.go:60
↓ 1 callers
Function
NewCronJob
()
cronjobs/cron.go:22
↓ 1 callers
Function
NewJobFromTask
(task *Task)
cronjobs/task.go:43
↓ 1 callers
Function
NewResolver
NewResolver initialize an etcd client
register/resolver.go:24
↓ 1 callers
Function
ParseStandard
ParseStandard returns a new crontab schedule representing the given standardSpec (https://en.wikipedia.org/wiki/Cron). It differs from Parse requiring
cronjobs/cron/parser.go:170
↓ 1 callers
Method
ReadConfig
()
config/viper.go:160
↓ 1 callers
Function
ReadFileToBytes
ReadFileToBytes reads data type '[]byte' from file by given path. It returns error when fail to finish operation.
filetool/reader.go:10
↓ 1 callers
Function
ReadFileToString
ReadFileToString reads data type 'string' from file by given path. It returns error when fail to finish operation.
filetool/reader.go:20
↓ 1 callers
Function
Register
Register register service with name as prefix to etcd, multi etcd addr should use ; to split
register/naming.go:13
↓ 1 callers
Method
RemoveJob
(cb RemoveCheckFunc)
cronjobs/cron/cron.go:116
↓ 1 callers
Method
Require
检查参数是否为空
check/check.go:23
↓ 1 callers
Method
RfcToUnix
2006-01-02T15:04:05Z07:00 转 时间戳
time/gotime.go:68
↓ 1 callers
Function
SelfPath
SelfPath gets compiled executable file absolute path
filetool/filetool.go:12
↓ 1 callers
Method
SetConfig
(cfgfile, cfgtype string, cfgpath ...string)
config/viper.go:20
↓ 1 callers
Method
SetConfigFile
(configfile string)
config/operating.go:13
↓ 1 callers
Method
SetFunc
(fn func(key string, value interface{}) error)
config/viper.go:21
↓ 1 callers
Function
SetLevelWithDefault
设置日志等级 如果低于设置级别,将不会输出日志 @params lv string 等级级别 @params defaultLv string 默认级别
logtool/logtool.go:14
↓ 1 callers
Method
SetLogLevel
(conf.Level)
golog/ilog.go:34
↓ 1 callers
Function
SetLogger
设置
golog/init.go:18
↓ 1 callers
Method
SetNums
(nums interface{})
paginator/paginator.go:39
↓ 1 callers
Function
Sha1File
Sha1File 文件sha1值
hash/file.go:31
↓ 1 callers
Function
Sha1String
Sha1String 获取字符串sha1值
hash/string.go:11
↓ 1 callers
Function
Sha256File
Sha256File 文件sha256值
hash/file.go:46
↓ 1 callers
Function
Sha256String
Sha256String 获取字符串sha256值
hash/string.go:16
↓ 1 callers
Function
Sha512File
Sha512File 文件sha512值
hash/file.go:61
↓ 1 callers
Function
Sha512String
Sha512String 获取字符串sha512值
hash/string.go:21
↓ 1 callers
Function
Start
()
timer/timer.go:11
↓ 1 callers
Function
StartJob
()
cronjobs/init.go:29
↓ 1 callers
Method
StartJob
()
cronjobs/cron.go:13
↓ 1 callers
Method
Stop
()
config/watch.go:9
↓ 1 callers
Method
StopJob
()
cronjobs/cron.go:14
↓ 1 callers
Function
StringArrToInString
string arr change int
array/array.go:27
↓ 1 callers
Method
Sync
()
golog/ilog.go:33
↓ 1 callers
Method
ToRFC3339
转换成RFC3339格式
time/gotime.go:88
↓ 1 callers
Function
TrimRightSpace
去掉换行,空格,回车,制表
strtool/strtool.go:12
↓ 1 callers
Function
URandom
()
systool/system.go:103
↓ 1 callers
Function
ValidateOnlineBankCode
在线验证银行卡信息
three_service/bank.go:11
↓ 1 callers
Method
WaitNext
Wait until revision is greater than lastRevision
config/backend/etcdv3/aaa.go:28
↓ 1 callers
Method
WatchConfig
配置文件动态加载
config/viper.go:29
↓ 1 callers
Function
WriteBytesToFile
WriteBytesToFile saves content type '[]byte' to file by given path. It returns error when fail to finish operation.
filetool/writer.go:10
↓ 1 callers
Method
WriteConfig
读取配置文件
config/operating.go:15
↓ 1 callers
Function
convertKey
(key, prefix, delim string)
config/backend/etcdv3/etcdv3.go:96
↓ 1 callers
Function
createWatch
(client *clientv3.Client, prefix string)
config/backend/etcdv3/aaa.go:59
↓ 1 callers
Function
dayMatches
dayMatches returns true if the schedule's day-of-week and day-of-month restrictions are satisfied by the given time.
cronjobs/cron/spec.go:149
↓ 1 callers
Function
exist
(l []resolver.Address, addr string)
register/resolver.go:96
↓ 1 callers
Function
expandFields
(fields []string, options ParseOption)
cronjobs/cron/parser.go:141
↓ 1 callers
Method
find
find 将按照 flag > config > defaults 这个版本 写完成 config > defaults
config/get_viper.go:119
↓ 1 callers
Method
getEntryById
(id int)
cronjobs/cron.go:69
↓ 1 callers
Function
getPulicIP
()
goaddr/getaddr.go:92
↓ 1 callers
Function
getType
查找配置文件类型 并初始化 ini yaml yml
config/operating.go:21
↓ 1 callers
Function
is_intranet
(ipStr string)
systool/system.go:176
↓ 1 callers
Method
localReadConfig
读取配置失败 具体的操作可以交给 调用者
config/viper.go:170
↓ 1 callers
Method
logf
Logs an error to stderr or to the configured error log
cronjobs/cron/cron.go:243
↓ 1 callers
Function
newStruct
(name string)
good/yilaizhurou.go:15
↓ 1 callers
Method
nodeWalk
* Get(key string) ([]byte, error) // List retrieves all keys and values under a provided key. List(key string) (KVPairs, error) // Set sets the p
config/backend/etcd/etcd.go:57
↓ 1 callers
Function
parseDescriptor
parseDescriptor returns a predefined schedule for the expression, or error if none matches.
cronjobs/cron/parser.go:317
↓ 1 callers
Function
readAll
readAll reads from r until an error or EOF and returns the data it read from the internal buffer allocated with a specified capacity. 使用_, err = buf.R
config/viper.go:263
↓ 1 callers
Function
readFile
打开文件计算文件大小,然后创建n+ytes.MinRead (512)大小的buf,
config/viper.go:235
↓ 1 callers
Method
readRemoteConfig
()
config/viper.go:192
↓ 1 callers
Function
registerType
(elem interface{})
good/yilaizhurou.go:10
↓ 1 callers
Function
remove
(s []resolver.Address, addr string)
register/resolver.go:105
↓ 1 callers
Function
runCmdWithTimeout
(cmd *exec.Cmd, timeout time.Duration)
cronjobs/task.go:79
↓ 1 callers
Method
runWithRecovery
(j Job)
cronjobs/cron/cron.go:167
↓ 1 callers
Method
searchMapWithPathPrefixes
searchMapWithPathPrefixes recursively searches for a value for path in source map. While searchMap() considers each path element as a single map key,
config/get_viper.go:158
↓ 1 callers
Function
stop
(cron *Cron)
cronjobs/cron/cron_test.go:409
← previous
next →
101–200 of 502, ranked by callers