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
↓ 56 callers
Method
Errorf
(string, ...interface{})
golog/ilog.go:21
↓ 44 callers
Method
Error
(...interface{})
golog/ilog.go:13
↓ 24 callers
Function
all
all returns all bits within the given bounds. (plus the star bit)
cronjobs/cron/parser.go:312
↓ 22 callers
Method
Stop
()
config/viper.go:30
↓ 21 callers
Method
AddFunc
AddFunc adds a func to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:102
↓ 20 callers
Method
Add
(log *TaskLog)
cronjobs/tasklog.go:32
↓ 19 callers
Method
Start
Start the cron scheduler in its own go-routine, or no-op if already started.
cronjobs/cron/cron.go:150
↓ 18 callers
Function
New
New returns a new Cron job runner, in the Local time zone.
cronjobs/cron/cron.go:78
↓ 14 callers
Method
Close
Close closes the resolver.
register/resolver.go:57
↓ 14 callers
Method
String
()
golog/conf/default.go:15
↓ 13 callers
Method
get
有远程配置中心, 下来配置到 --> config 保存到本地 没有远程配置中心 读取本地配置 --> config Get 将按照 flag > config > defaults
config/get_viper.go:108
↓ 12 callers
Method
Now
获取当前时间 年-月-日 时:分:秒
time/gotime.go:19
↓ 11 callers
Function
wait
(wg *sync.WaitGroup)
cronjobs/cron/cron_test.go:400
↓ 10 callers
Method
Format
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 callers
Function
New
实例
time/gotime.go:14
↓ 9 callers
Method
Next
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 callers
Method
AddJob
(spec string, job *Job)
cronjobs/cron.go:10
↓ 8 callers
Function
NewAddr
_type {false:内网地址 ,true:外网地址}
goaddr/getaddr.go:25
↓ 8 callers
Method
NowTime
获取当前时间Time
time/gotime.go:29
↓ 8 callers
Method
Parse
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 callers
Function
Every
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 callers
Method
Page
()
paginator/paginator.go:43
↓ 7 callers
Method
Schedule
Schedule adds a Job to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:121
↓ 7 callers
Method
Watch
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 callers
Method
Fatal
(...interface{})
golog/ilog.go:15
↓ 6 callers
Method
PageNums
()
paginator/paginator.go:23
↓ 6 callers
Function
Parse
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 callers
Function
getTime
(value string)
cronjobs/cron/spec_test.go:184
↓ 6 callers
Function
p
打印信息
logtool/logtool.go:97
↓ 5 callers
Method
Debug
普通日志
golog/ilog.go:10
↓ 5 callers
Method
Run
()
cronjobs/cron/cron.go:31
↓ 4 callers
Function
Debug
普通日志
golog/init.go:36
↓ 4 callers
Method
Entries
Entries returns a snapshot of the cron entries.
cronjobs/cron/cron.go:135
↓ 4 callers
Method
GetIPstr
()
goaddr/getaddr.go:61
↓ 4 callers
Function
IsExist
IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.
filetool/filetool.go:65
↓ 4 callers
Method
Location
Location gets the time zone location
cronjobs/cron/cron.go:145
↓ 4 callers
Method
PageLink
(page int)
paginator/paginator.go:89
↓ 3 callers
Method
Debugw
key value
golog/ilog.go:26
↓ 3 callers
Method
ExternalAddr
()
goaddr/getaddr.go:51
↓ 3 callers
Method
Fatalf
(string, ...interface{})
golog/ilog.go:23
↓ 3 callers
Method
Info
(...interface{})
golog/ilog.go:11
↓ 3 callers
Method
IntranetAddr
()
goaddr/getaddr.go:41
↓ 3 callers
Method
List
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 callers
Method
LocalAddr
()
goaddr/getaddr.go:36
↓ 3 callers
Method
Set
(key string, value interface{})
config/set_viper.go:25
↓ 3 callers
Function
Warn
level: 3
logtool/logtool.go:76
↓ 3 callers
Method
Warnf
(string, ...interface{})
golog/ilog.go:20
↓ 3 callers
Method
Warnw
(string, ...interface{})
golog/ilog.go:28
↓ 3 callers
Function
convertKey
(key, prefix, delim string)
config/backend/etcd/etcd.go:141
↓ 3 callers
Function
getBits
getBits sets all bits in the range [min, max], modulo the given step size.
cronjobs/cron/parser.go:296
↓ 3 callers
Function
parseLevel
(level conf.Level)
golog/plugins/zaplog/zaplog.go:17
↓ 3 callers
Method
set
(key string, value interface{})
config/set_viper.go:93
↓ 2 callers
Method
Before
当前时间 减去 多少秒
time/gotime.go:58
↓ 2 callers
Method
Debugf
需要格式化日志
golog/ilog.go:18
↓ 2 callers
Function
Error
level: 4
logtool/logtool.go:83
↓ 2 callers
Method
Errorw
(string, ...interface{})
golog/ilog.go:29
↓ 2 callers
Method
Fatalw
(string, ...interface{})
golog/ilog.go:31
↓ 2 callers
Method
GetTCPAddr
()
goaddr/getaddr.go:65
↓ 2 callers
Method
GetUDPAddr
()
goaddr/getaddr.go:69
↓ 2 callers
Method
Infof
(string, ...interface{})
golog/ilog.go:19
↓ 2 callers
Method
Infow
(string, ...interface{})
golog/ilog.go:27
↓ 2 callers
Function
Md5Byte
* 对字节数组取hash值 */ Md5Byte 获取字节数组md5值
hash/byte.go:14
↓ 2 callers
Function
NewParser
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 callers
Function
NewWithLocation
NewWithLocation returns a new Cron job runner.
cronjobs/cron/cron.go:83
↓ 2 callers
Method
NowUnix
获取当前时间戳
time/gotime.go:24
↓ 2 callers
Method
Panic
(...interface{})
golog/ilog.go:14
↓ 2 callers
Method
Panicf
(string, ...interface{})
golog/ilog.go:22
↓ 2 callers
Method
Panicw
(string, ...interface{})
golog/ilog.go:30
↓ 2 callers
Function
RandomString
随机字符串
strtool/strtool.go:24
↓ 2 callers
Method
ReadConfig
()
config/viper.go:26
↓ 2 callers
Function
ReadFileToStringNoLn
读取文件里的数据,去掉空格,换行,制表符,回车
filetool/reader.go:29
↓ 2 callers
Method
Scheme
()
register/resolver.go:48
↓ 2 callers
Method
SetDefault
(key string, value interface{})
config/viper.go:18
↓ 2 callers
Function
SetLevel
直接设置级别
logtool/logtool.go:23
↓ 2 callers
Function
SetLogLevel
目前只有zap生效
golog/init.go:26
↓ 2 callers
Function
Sha1Byte
Sha1Byte 获取节数组sha1值
hash/byte.go:21
↓ 2 callers
Function
Sha256Byte
Sha256Byte 获取节数组sha256值
hash/byte.go:28
↓ 2 callers
Function
Sha512Byte
Sha512Byte 获取节数组sha512值
hash/byte.go:35
↓ 2 callers
Function
StartTicker
()
timer/timer.go:15
↓ 2 callers
Function
Trace
level: 0
logtool/logtool.go:55
↓ 2 callers
Method
Warn
(...interface{})
golog/ilog.go:12
↓ 2 callers
Function
deepSearch
(m map[string]interface{}, path []string)
config/set_viper.go:110
↓ 2 callers
Method
entrySnapshot
entrySnapshot returns a copy of the current cron entry list.
cronjobs/cron/cron.go:261
↓ 2 callers
Function
getField
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 callers
Function
getRange
getRange returns the bits indicated by the given expression: number | number "-" number [ "/" number ] or error parsing range.
cronjobs/cron/parser.go:207
↓ 2 callers
Function
getTimeTZ
(value string)
cronjobs/cron/spec_test.go:233
↓ 2 callers
Method
getip
(_type bool)
goaddr/getaddr.go:108
↓ 2 callers
Method
isPathShadowedInDeepMap
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 callers
Function
isPublicIP
(IP net.IP)
goaddr/getaddr.go:73
↓ 2 callers
Function
mustParseInt
mustParseInt parses the given expression as an int or returns an error.
cronjobs/cron/parser.go:283
↓ 2 callers
Method
now
now returns current time in c location
cronjobs/cron/cron.go:275
↓ 2 callers
Function
parseIntOrName
parseIntOrName returns the (possibly-named) integer contained in expr.
cronjobs/cron/parser.go:273
↓ 2 callers
Method
run
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 callers
Method
searchMap
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 callers
Method
update
Update revision
config/backend/etcdv3/aaa.go:51
↓ 2 callers
Method
writeConfig
()
config/viper.go:145
↓ 1 callers
Function
AddJob
(spec string, job *Job)
cronjobs/init.go:17
↓ 1 callers
Method
AddJob
AddJob adds a Job to the Cron to be run on the given schedule.
cronjobs/cron/cron.go:107
↓ 1 callers
Function
Basename
get filepath base name
filetool/filetool.go:23
↓ 1 callers
Function
BytesToInt64
byte 转 int64
convertor/integer.go:11
next →
1–100 of 502, ranked by callers