MCPcopy Create free account

hub / github.com/ThreeKing2018/goutil / functions

Functions502 in github.com/ThreeKing2018/goutil

↓ 56 callersMethodErrorf
(string, ...interface{})
golog/ilog.go:21
↓ 44 callersMethodError
(...interface{})
golog/ilog.go:13
↓ 24 callersFunctionall
all returns all bits within the given bounds. (plus the star bit)
cronjobs/cron/parser.go:312
↓ 22 callersMethodStop
()
config/viper.go:30
↓ 21 callersMethodAddFunc
AddFunc adds a func to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:102
↓ 20 callersMethodAdd
(log *TaskLog)
cronjobs/tasklog.go:32
↓ 19 callersMethodStart
Start the cron scheduler in its own go-routine, or no-op if already started.
cronjobs/cron/cron.go:150
↓ 18 callersFunctionNew
New returns a new Cron job runner, in the Local time zone.
cronjobs/cron/cron.go:78
↓ 14 callersMethodClose
Close closes the resolver.
register/resolver.go:57
↓ 14 callersMethodString
()
golog/conf/default.go:15
↓ 13 callersMethodget
有远程配置中心, 下来配置到 --> config 保存到本地 没有远程配置中心 读取本地配置 --> config Get 将按照 flag > config > defaults
config/get_viper.go:108
↓ 12 callersMethodNow
获取当前时间 年-月-日 时:分:秒
time/gotime.go:19
↓ 11 callersFunctionwait
(wg *sync.WaitGroup)
cronjobs/cron/cron_test.go:400
↓ 10 callersMethodFormat
Format time.Time struct to string MM - month - 01 M - month - 1, single bit DD - day - 02 D - day 2 YYYY - year - 2006 YY - year - 06 HH - 24 hours -
time/gotime.go:111
↓ 9 callersFunctionNew
实例
time/gotime.go:14
↓ 9 callersMethodNext
Return the next activation time, later than the given time. Next is invoked initially, and then each time the job is run.
cronjobs/cron/cron.go:38
↓ 8 callersMethodAddJob
(spec string, job *Job)
cronjobs/cron.go:10
↓ 8 callersFunctionNewAddr
_type {false:内网地址 ,true:外网地址}
goaddr/getaddr.go:25
↓ 8 callersMethodNowTime
获取当前时间Time
time/gotime.go:29
↓ 8 callersMethodParse
Parse returns a new crontab schedule representing the given spec. It returns a descriptive error if the spec is not valid. It accepts crontab specs an
cronjobs/cron/parser.go:78
↓ 7 callersFunctionEvery
Every returns a crontab Schedule that activates once every duration. Delays of less than a second are not supported (will round up to 1 second). Any f
cronjobs/cron/constantdelay.go:14
↓ 7 callersMethodPage
()
paginator/paginator.go:43
↓ 7 callersMethodSchedule
Schedule adds a Job to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:121
↓ 7 callersMethodWatch
Set sets the provided key to value. Set(key string, value []byte) error Watch monitors a K/V store for changes to key.
config/backend/backend.go:34
↓ 6 callersMethodFatal
(...interface{})
golog/ilog.go:15
↓ 6 callersMethodPageNums
()
paginator/paginator.go:23
↓ 6 callersFunctionParse
Parse returns a new crontab schedule representing the given spec. It returns a descriptive error if the spec is not valid. It accepts - Full crontab
cronjobs/cron/parser.go:184
↓ 6 callersFunctiongetTime
(value string)
cronjobs/cron/spec_test.go:184
↓ 6 callersFunctionp
打印信息
logtool/logtool.go:97
↓ 5 callersMethodDebug
普通日志
golog/ilog.go:10
↓ 5 callersMethodRun
()
cronjobs/cron/cron.go:31
↓ 4 callersFunctionDebug
普通日志
golog/init.go:36
↓ 4 callersMethodEntries
Entries returns a snapshot of the cron entries.
cronjobs/cron/cron.go:135
↓ 4 callersMethodGetIPstr
()
goaddr/getaddr.go:61
↓ 4 callersFunctionIsExist
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
filetool/filetool.go:65
↓ 4 callersMethodLocation
Location gets the time zone location
cronjobs/cron/cron.go:145
↓ 4 callersMethodPageLink
(page int)
paginator/paginator.go:89
↓ 3 callersMethodDebugw
key value
golog/ilog.go:26
↓ 3 callersMethodExternalAddr
()
goaddr/getaddr.go:51
↓ 3 callersMethodFatalf
(string, ...interface{})
golog/ilog.go:23
↓ 3 callersMethodInfo
(...interface{})
golog/ilog.go:11
↓ 3 callersMethodIntranetAddr
()
goaddr/getaddr.go:41
↓ 3 callersMethodList
Get retrieves a value from a K/V store for the provided key. Get(key string) ([]byte, error) List retrieves all keys and values under a provided key.
config/backend/backend.go:28
↓ 3 callersMethodLocalAddr
()
goaddr/getaddr.go:36
↓ 3 callersMethodSet
(key string, value interface{})
config/set_viper.go:25
↓ 3 callersFunctionWarn
level: 3
logtool/logtool.go:76
↓ 3 callersMethodWarnf
(string, ...interface{})
golog/ilog.go:20
↓ 3 callersMethodWarnw
(string, ...interface{})
golog/ilog.go:28
↓ 3 callersFunctionconvertKey
(key, prefix, delim string)
config/backend/etcd/etcd.go:141
↓ 3 callersFunctiongetBits
getBits sets all bits in the range [min, max], modulo the given step size.
cronjobs/cron/parser.go:296
↓ 3 callersFunctionparseLevel
(level conf.Level)
golog/plugins/zaplog/zaplog.go:17
↓ 3 callersMethodset
(key string, value interface{})
config/set_viper.go:93
↓ 2 callersMethodBefore
当前时间 减去 多少秒
time/gotime.go:58
↓ 2 callersMethodDebugf
需要格式化日志
golog/ilog.go:18
↓ 2 callersFunctionError
level: 4
logtool/logtool.go:83
↓ 2 callersMethodErrorw
(string, ...interface{})
golog/ilog.go:29
↓ 2 callersMethodFatalw
(string, ...interface{})
golog/ilog.go:31
↓ 2 callersMethodGetTCPAddr
()
goaddr/getaddr.go:65
↓ 2 callersMethodGetUDPAddr
()
goaddr/getaddr.go:69
↓ 2 callersMethodInfof
(string, ...interface{})
golog/ilog.go:19
↓ 2 callersMethodInfow
(string, ...interface{})
golog/ilog.go:27
↓ 2 callersFunctionMd5Byte
* 对字节数组取hash值 */ Md5Byte 获取字节数组md5值
hash/byte.go:14
↓ 2 callersFunctionNewParser
Creates a custom Parser with custom options. Standard parser without descriptors specParser := NewParser(Minute | Hour | Dom | Month | Dow) sched, er
cronjobs/cron/parser.go:66
↓ 2 callersFunctionNewWithLocation
NewWithLocation returns a new Cron job runner.
cronjobs/cron/cron.go:83
↓ 2 callersMethodNowUnix
获取当前时间戳
time/gotime.go:24
↓ 2 callersMethodPanic
(...interface{})
golog/ilog.go:14
↓ 2 callersMethodPanicf
(string, ...interface{})
golog/ilog.go:22
↓ 2 callersMethodPanicw
(string, ...interface{})
golog/ilog.go:30
↓ 2 callersFunctionRandomString
随机字符串
strtool/strtool.go:24
↓ 2 callersMethodReadConfig
()
config/viper.go:26
↓ 2 callersFunctionReadFileToStringNoLn
读取文件里的数据,去掉空格,换行,制表符,回车
filetool/reader.go:29
↓ 2 callersMethodScheme
()
register/resolver.go:48
↓ 2 callersMethodSetDefault
(key string, value interface{})
config/viper.go:18
↓ 2 callersFunctionSetLevel
直接设置级别
logtool/logtool.go:23
↓ 2 callersFunctionSetLogLevel
目前只有zap生效
golog/init.go:26
↓ 2 callersFunctionSha1Byte
Sha1Byte 获取节数组sha1值
hash/byte.go:21
↓ 2 callersFunctionSha256Byte
Sha256Byte 获取节数组sha256值
hash/byte.go:28
↓ 2 callersFunctionSha512Byte
Sha512Byte 获取节数组sha512值
hash/byte.go:35
↓ 2 callersFunctionStartTicker
()
timer/timer.go:15
↓ 2 callersFunctionTrace
level: 0
logtool/logtool.go:55
↓ 2 callersMethodWarn
(...interface{})
golog/ilog.go:12
↓ 2 callersFunctiondeepSearch
(m map[string]interface{}, path []string)
config/set_viper.go:110
↓ 2 callersMethodentrySnapshot
entrySnapshot returns a copy of the current cron entry list.
cronjobs/cron/cron.go:261
↓ 2 callersFunctiongetField
getField returns an Int with the bits set representing all of the times that the field represents or error parsing field value. A "field" is a comma-
cronjobs/cron/parser.go:191
↓ 2 callersFunctiongetRange
getRange returns the bits indicated by the given expression: number | number "-" number [ "/" number ] or error parsing range.
cronjobs/cron/parser.go:207
↓ 2 callersFunctiongetTimeTZ
(value string)
cronjobs/cron/spec_test.go:233
↓ 2 callersMethodgetip
(_type bool)
goaddr/getaddr.go:108
↓ 2 callersMethodisPathShadowedInDeepMap
isPathShadowedInDeepMap makes sure the given path is not shadowed somewhere on its path in the map. e.g., if "foo.bar" has a value in the given map, i
config/get_viper.go:200
↓ 2 callersFunctionisPublicIP
(IP net.IP)
goaddr/getaddr.go:73
↓ 2 callersFunctionmustParseInt
mustParseInt parses the given expression as an int or returns an error.
cronjobs/cron/parser.go:283
↓ 2 callersMethodnow
now returns current time in c location
cronjobs/cron/cron.go:275
↓ 2 callersFunctionparseIntOrName
parseIntOrName returns the (possibly-named) integer contained in expr.
cronjobs/cron/parser.go:273
↓ 2 callersMethodrun
Run the scheduler. this is private just due to the need to synchronize access to the 'running' state variable.
cronjobs/cron/cron.go:181
↓ 2 callersMethodsearchMap
searchMap recursively searches for a value for path in source map. Returns nil if not found. Note: This assumes that the path entries and map keys are
config/get_viper.go:224
↓ 2 callersMethodupdate
Update revision
config/backend/etcdv3/aaa.go:51
↓ 2 callersMethodwriteConfig
()
config/viper.go:145
↓ 1 callersFunctionAddJob
(spec string, job *Job)
cronjobs/init.go:17
↓ 1 callersMethodAddJob
AddJob adds a Job to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:107
↓ 1 callersFunctionBasename
get filepath base name
filetool/filetool.go:23
↓ 1 callersFunctionBytesToInt64
byte 转 int64
convertor/integer.go:11
next →1–100 of 502, ranked by callers