MCPcopy Create free account

hub / github.com/ThreeKing2018/goutil / functions

Functions502 in github.com/ThreeKing2018/goutil

↓ 1 callersMethodCheckImageUrlAndExtension
检查图片
check/check.go:79
↓ 1 callersFunctionCmdOut
(name string, arg ...string)
systool/command.go:12
↓ 1 callersFunctionDebug
level: 1
logtool/logtool.go:62
↓ 1 callersFunctionDelJob
(jobID int)
cronjobs/init.go:21
↓ 1 callersMethodDelJob
(jobID int)
cronjobs/cron.go:11
↓ 1 callersMethodDetail
(num int)
cronjobs/tasklog.go:44
↓ 1 callersMethodDetailJob
()
cronjobs/cron.go:12
↓ 1 callersFunctionDir
get filepath dir name
filetool/filetool.go:28
↓ 1 callersFunctionDirsUnder
list dirs under dirPath
filetool/filetool.go:110
↓ 1 callersMethodExclude
(iplist []string)
goaddr/getaddr.go:31
↓ 1 callersFunctionFetal
level: 5
logtool/logtool.go:90
↓ 1 callersFunctionFileMTime
get file modified time
filetool/filetool.go:92
↓ 1 callersFunctionFileToInt64
(file string)
filetool/convert.go:20
↓ 1 callersFunctionFileToUint64
(file string)
filetool/convert.go:7
↓ 1 callersFunctionGenerateRandomSeed
()
systool/system.go:112
↓ 1 callersFunctionGetCurrentDirectory
获取当前执行文件的目录
pwdtools/pwdtools.go:14
↓ 1 callersFunctionGetExecFilePath
获取执行文件的路径
pwdtools/pwdtools.go:37
↓ 1 callersMethodGetRFC3339
获取RFC3339格式
time/gotime.go:83
↓ 1 callersFunctionGetRootDir
获取执行文件当前的目录 最后带/
pwdtools/pwdtools.go:25
↓ 1 callersMethodGetYmd
获取年月日
time/gotime.go:34
↓ 1 callersMethodHasNext
()
paginator/paginator.go:127
↓ 1 callersMethodHasPrev
()
paginator/paginator.go:123
↓ 1 callersFunctionHttpGet
(url string)
curl/curl.go:8
↓ 1 callersMethodImage
检查图片是否上传
check/check.go:67
↓ 1 callersFunctionInArray
判断元素是否包含
array/array.go:32
↓ 1 callersFunctionInfo
level: 2
logtool/logtool.go:69
↓ 1 callersFunctionInt64ArrToInString
int64 change string
array/array.go:18
↓ 1 callersFunctionInt64ToBytes
int64 转 byte
convertor/byte.go:6
↓ 1 callersFunctionIntArrToInString
int 转 string
array/array.go:9
↓ 1 callersFunctionLocalIP
()
systool/system.go:31
↓ 1 callersFunctionMd5
生成MD5
strtool/strtool.go:17
↓ 1 callersFunctionMd5File
* 对文件去hash值 */ Md5File 文件md5值
hash/file.go:16
↓ 1 callersFunctionMd5String
* 对字符串取hash值 */ Md5String 获取字符串md5值
hash/string.go:6
↓ 1 callersFunctionNew
()
config/viper.go:64
↓ 1 callersFunctionNewClient
(endpoint []string, Prefix, Delim string)
config/backend/etcdv3/etcdv3.go:21
↓ 1 callersFunctionNewCommandJob
(id int, name string, command string)
cronjobs/task.go:60
↓ 1 callersFunctionNewCronJob
()
cronjobs/cron.go:22
↓ 1 callersFunctionNewJobFromTask
(task *Task)
cronjobs/task.go:43
↓ 1 callersFunctionNewResolver
NewResolver initialize an etcd client
register/resolver.go:24
↓ 1 callersFunctionParseStandard
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 callersMethodReadConfig
()
config/viper.go:160
↓ 1 callersFunctionReadFileToBytes
ReadFileToBytes reads data type '[]byte' from file by given path. It returns error when fail to finish operation.
filetool/reader.go:10
↓ 1 callersFunctionReadFileToString
ReadFileToString reads data type 'string' from file by given path. It returns error when fail to finish operation.
filetool/reader.go:20
↓ 1 callersFunctionRegister
Register register service with name as prefix to etcd, multi etcd addr should use ; to split
register/naming.go:13
↓ 1 callersMethodRemoveJob
(cb RemoveCheckFunc)
cronjobs/cron/cron.go:116
↓ 1 callersMethodRequire
检查参数是否为空
check/check.go:23
↓ 1 callersMethodRfcToUnix
2006-01-02T15:04:05Z07:00 转 时间戳
time/gotime.go:68
↓ 1 callersFunctionSelfPath
SelfPath gets compiled executable file absolute path
filetool/filetool.go:12
↓ 1 callersMethodSetConfig
(cfgfile, cfgtype string, cfgpath ...string)
config/viper.go:20
↓ 1 callersMethodSetConfigFile
(configfile string)
config/operating.go:13
↓ 1 callersMethodSetFunc
(fn func(key string, value interface{}) error)
config/viper.go:21
↓ 1 callersFunctionSetLevelWithDefault
设置日志等级 如果低于设置级别,将不会输出日志 @params lv string 等级级别 @params defaultLv string 默认级别
logtool/logtool.go:14
↓ 1 callersMethodSetLogLevel
(conf.Level)
golog/ilog.go:34
↓ 1 callersFunctionSetLogger
设置
golog/init.go:18
↓ 1 callersMethodSetNums
(nums interface{})
paginator/paginator.go:39
↓ 1 callersFunctionSha1File
Sha1File 文件sha1值
hash/file.go:31
↓ 1 callersFunctionSha1String
Sha1String 获取字符串sha1值
hash/string.go:11
↓ 1 callersFunctionSha256File
Sha256File 文件sha256值
hash/file.go:46
↓ 1 callersFunctionSha256String
Sha256String 获取字符串sha256值
hash/string.go:16
↓ 1 callersFunctionSha512File
Sha512File 文件sha512值
hash/file.go:61
↓ 1 callersFunctionSha512String
Sha512String 获取字符串sha512值
hash/string.go:21
↓ 1 callersFunctionStart
()
timer/timer.go:11
↓ 1 callersFunctionStartJob
()
cronjobs/init.go:29
↓ 1 callersMethodStartJob
()
cronjobs/cron.go:13
↓ 1 callersMethodStop
()
config/watch.go:9
↓ 1 callersMethodStopJob
()
cronjobs/cron.go:14
↓ 1 callersFunctionStringArrToInString
string arr change int
array/array.go:27
↓ 1 callersMethodSync
()
golog/ilog.go:33
↓ 1 callersMethodToRFC3339
转换成RFC3339格式
time/gotime.go:88
↓ 1 callersFunctionTrimRightSpace
去掉换行,空格,回车,制表
strtool/strtool.go:12
↓ 1 callersFunctionURandom
()
systool/system.go:103
↓ 1 callersFunctionValidateOnlineBankCode
在线验证银行卡信息
three_service/bank.go:11
↓ 1 callersMethodWaitNext
Wait until revision is greater than lastRevision
config/backend/etcdv3/aaa.go:28
↓ 1 callersMethodWatchConfig
配置文件动态加载
config/viper.go:29
↓ 1 callersFunctionWriteBytesToFile
WriteBytesToFile saves content type '[]byte' to file by given path. It returns error when fail to finish operation.
filetool/writer.go:10
↓ 1 callersMethodWriteConfig
读取配置文件
config/operating.go:15
↓ 1 callersFunctionconvertKey
(key, prefix, delim string)
config/backend/etcdv3/etcdv3.go:96
↓ 1 callersFunctioncreateWatch
(client *clientv3.Client, prefix string)
config/backend/etcdv3/aaa.go:59
↓ 1 callersFunctiondayMatches
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 callersFunctionexist
(l []resolver.Address, addr string)
register/resolver.go:96
↓ 1 callersFunctionexpandFields
(fields []string, options ParseOption)
cronjobs/cron/parser.go:141
↓ 1 callersMethodfind
find 将按照 flag > config > defaults 这个版本 写完成 config > defaults
config/get_viper.go:119
↓ 1 callersMethodgetEntryById
(id int)
cronjobs/cron.go:69
↓ 1 callersFunctiongetPulicIP
()
goaddr/getaddr.go:92
↓ 1 callersFunctiongetType
查找配置文件类型 并初始化 ini yaml yml
config/operating.go:21
↓ 1 callersFunctionis_intranet
(ipStr string)
systool/system.go:176
↓ 1 callersMethodlocalReadConfig
读取配置失败 具体的操作可以交给 调用者
config/viper.go:170
↓ 1 callersMethodlogf
Logs an error to stderr or to the configured error log
cronjobs/cron/cron.go:243
↓ 1 callersFunctionnewStruct
(name string)
good/yilaizhurou.go:15
↓ 1 callersMethodnodeWalk
* 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 callersFunctionparseDescriptor
parseDescriptor returns a predefined schedule for the expression, or error if none matches.
cronjobs/cron/parser.go:317
↓ 1 callersFunctionreadAll
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 callersFunctionreadFile
打开文件计算文件大小,然后创建n+ytes.MinRead (512)大小的buf,
config/viper.go:235
↓ 1 callersMethodreadRemoteConfig
()
config/viper.go:192
↓ 1 callersFunctionregisterType
(elem interface{})
good/yilaizhurou.go:10
↓ 1 callersFunctionremove
(s []resolver.Address, addr string)
register/resolver.go:105
↓ 1 callersFunctionrunCmdWithTimeout
(cmd *exec.Cmd, timeout time.Duration)
cronjobs/task.go:79
↓ 1 callersMethodrunWithRecovery
(j Job)
cronjobs/cron/cron.go:167
↓ 1 callersMethodsearchMapWithPathPrefixes
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 callersFunctionstop
(cron *Cron)
cronjobs/cron/cron_test.go:409
← previousnext →101–200 of 502, ranked by callers