MCPcopy Create free account

hub / github.com/ThreeKing2018/goutil / functions

Functions502 in github.com/ThreeKing2018/goutil

FunctionTestGoTime_RfcToUnix
(t *testing.T)
time/gotime_test.go:28
FunctionTestGoTime_ToRFC3339
(t *testing.T)
time/gotime_test.go:36
FunctionTestHttpGet
(t *testing.T)
curl/curl_test.go:8
FunctionTestInArray
(t *testing.T)
array/array_test.go:23
FunctionTestInt64ArrToInString
(t *testing.T)
array/array_test.go:13
FunctionTestInt64ToBytes
(t *testing.T)
convertor/convertor_test.go:8
FunctionTestIntArrToInString
(t *testing.T)
array/array_test.go:8
FunctionTestInvalidJobSpec
Test that adding an invalid job spec returns an error
cronjobs/cron/cron_test.go:283
FunctionTestJob
Simple test using Runnables.
cronjobs/cron/cron_test.go:344
FunctionTestJobPanicRecovery
(t *testing.T)
cronjobs/cron/cron_test.go:33
FunctionTestJobWithZeroTimeDoesNotRun
Tests that job without time does not run
cronjobs/cron/cron_test.go:387
FunctionTestLocalTimezone
Test that the cron is run in the local time zone (as opposed to UTC).
cronjobs/cron/cron_test.go:219
FunctionTestMd5
(t *testing.T)
strtool/strtool_test.go:13
FunctionTestMultipleEntries
Test that the entries are correctly sorted. Add a bunch of long-in-the-future entries, and an immediate entry, and ensure that the immediate entry run
cronjobs/cron/cron_test.go:156
FunctionTestNext
(t *testing.T)
cronjobs/cron/spec_test.go:73
FunctionTestNextWithTz
(t *testing.T)
cronjobs/cron/spec_test.go:206
FunctionTestNoEntries
Start and stop cron with no entries.
cronjobs/cron/cron_test.go:48
FunctionTestNonLocalTimezone
Test that the cron is run in the given time zone (as opposed to local).
cronjobs/cron/cron_test.go:240
FunctionTestParse
(t *testing.T)
cronjobs/cron/parser_test.go:119
FunctionTestRandomString
(t *testing.T)
strtool/strtool_test.go:18
FunctionTestRange
(t *testing.T)
cronjobs/cron/parser_test.go:10
FunctionTestRunningJobTwice
Test running the same job twice.
cronjobs/cron/cron_test.go:177
FunctionTestRunningMultipleSchedules
(t *testing.T)
cronjobs/cron/cron_test.go:196
FunctionTestSnapshotEntries
Test timing with Entries.
cronjobs/cron/cron_test.go:128
FunctionTestStandardSpecSchedule
(t *testing.T)
cronjobs/cron/parser_test.go:198
FunctionTestStart
(t *testing.T)
timer/timer_test.go:5
FunctionTestStartNoop
Test that double-running is a no-op
cronjobs/cron/cron_test.go:317
FunctionTestStartTicker
(t *testing.T)
timer/timer_test.go:8
FunctionTestStopCausesJobsToNotRun
Start, stop, then add an entry. Verify entry doesn't run.
cronjobs/cron/cron_test.go:60
FunctionTestStopWithoutStart
Test that calling stop before start silently returns without blocking the stop channel.
cronjobs/cron/cron_test.go:268
FunctionTestStringArrToInString
(t *testing.T)
array/array_test.go:18
FunctionTestTrimRightSpace
(t *testing.T)
strtool/strtool_test.go:8
FunctionTestValidateOnlineBankCode
(t *testing.T)
three_service/bank_test.go:8
FunctionTest_Debug
(t *testing.T)
logtool/logtool_test.go:8
FunctionTest_DiscoveryService
测试客户端发现
register/register_test.go:27
FunctionTest_Error
(t *testing.T)
logtool/logtool_test.go:17
FunctionTest_ExcludeIp_str
(t *testing.T)
goaddr/getaddr_test.go:25
FunctionTest_Fetal
(t *testing.T)
logtool/logtool_test.go:20
FunctionTest_Getlocal_str
(t *testing.T)
goaddr/getaddr_test.go:31
FunctionTest_GetneiIp_str
str
goaddr/getaddr_test.go:9
FunctionTest_GetneiIp_tcp
tcp
goaddr/getaddr_test.go:38
FunctionTest_GetneiIp_udp
udp
goaddr/getaddr_test.go:56
FunctionTest_GetwaiIp_str
(t *testing.T)
goaddr/getaddr_test.go:14
FunctionTest_GetwaiIp_tcp
(t *testing.T)
goaddr/getaddr_test.go:44
FunctionTest_GetwaiIp_udp
(t *testing.T)
goaddr/getaddr_test.go:62
FunctionTest_Info
(t *testing.T)
logtool/logtool_test.go:11
FunctionTest_Md5Byte
测试字节数组hash
hash/byte_test.go:9
FunctionTest_Md5File
测试文件hash
hash/file_test.go:9
FunctionTest_Md5String
测试字符串hash
hash/string_test.go:9
FunctionTest_RegisterService
Test_RegisterServer 测试服务注册
register/register_test.go:18
FunctionTest_SetLevel
(t *testing.T)
logtool/logtool_test.go:23
FunctionTest_Sha1Byte
(t *testing.T)
hash/byte_test.go:16
FunctionTest_Sha1File
(t *testing.T)
hash/file_test.go:19
FunctionTest_Sha1String
(t *testing.T)
hash/string_test.go:16
FunctionTest_Sha256Byte
(t *testing.T)
hash/byte_test.go:23
FunctionTest_Sha256File
(t *testing.T)
hash/file_test.go:29
FunctionTest_Sha256String
(t *testing.T)
hash/string_test.go:23
FunctionTest_Sha512Byte
(t *testing.T)
hash/byte_test.go:30
FunctionTest_Sha512File
(t *testing.T)
hash/file_test.go:39
FunctionTest_Sha512String
(t *testing.T)
hash/string_test.go:30
FunctionTest_Trace
(t *testing.T)
logtool/logtool_test.go:5
FunctionTest_Warn
(t *testing.T)
logtool/logtool_test.go:14
FunctionTest_client
(t *testing.T)
config/backend/etcdv3/etcdv3_test.go:10
FunctionTest_cron
* type Task struct { Id int Name string CronSpec string //'时间表达式', Concurrent int //'是否只允许一个实例', Command string /
cronjobs/cron_test.go:39
FunctionTest_logge
(t *testing.T)
golog/golog_test.go:10
FunctionTest_viper
* func Test_JsonConf(t *testing.T) { a := GetInstance() a.ParseConf("../cmd/server.json","json") fmt.Println(a.Cfg.Version) a.Cfg.Version = "1.12
config/viper_test.go:31
FunctionToInt64
convert any numeric value to int64 任意类型转int64
convertor/integer.go:29
MethodToUnix
2006-01-02 15:04:05 转 时间戳
time/gotime.go:77
FunctionUnRegister
UnRegister remove service from etcd
register/naming.go:70
FunctionUnlink
delete file
filetool/filetool.go:49
FunctionWarn
(args ...interface{})
golog/init.go:42
MethodWarn
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:126
FunctionWarnf
(format string, args ...interface{})
golog/init.go:62
MethodWarnf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:145
FunctionWarnw
(msg string, keysAndValues ...interface{})
golog/init.go:84
MethodWarnw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:164
MethodWatch
(stop chan struct{})
config/backend/etcd/etcd.go:90
MethodWatch
(stop chan struct{})
config/backend/file/file.go:22
MethodWatch
()
config/backend/etcdv3/etcdv3.go:56
MethodWatch1
func (c *client) Watch(stop chan struct{}) <-chan *resp.Response {
config/backend/etcdv3/etcdv3.go:79
MethodWatchConfig
这里的stop 以后可以换成context,, string, map,[]string []int 都能自动转换,其他类型需要自定义fn函数
config/watch.go:14
MethodWatchPrefix
(prefix string, keys []string, waitIndex uint64, stopChan chan bool)
config/backend/etcdv3/aaa.go:225
FunctionWithFilename
(logpath string)
golog/conf/option.go:22
FunctionWithIsStdOut
(isstdout bool)
golog/conf/option.go:52
FunctionWithLogLevel
(loglevel Level)
golog/conf/option.go:28
FunctionWithLogType
(logtype string)
golog/conf/option.go:16
FunctionWithMaxAge
(maxage int)
golog/conf/option.go:40
FunctionWithMaxSize
(maxsize int)
golog/conf/option.go:34
FunctionWithProjectName
(projectname string)
golog/conf/option.go:58
FunctionWithStacktrace
(stacktrace Level)
golog/conf/option.go:46
MethodWriteConfig
(v interface{})
config/ini/ini.go:21
MethodWriteConfig
(v interface{})
config/gotoml/gotoml.go:44
MethodWriteConfig
(v interface{})
config/json/json.go:37
FunctionWritePidFile
(pidFilePath string)
systool/system.go:18
FunctionWriteStringToFile
WriteStringFile saves content type 'string' to file by given path. It returns error when fail to finish operation.
filetool/writer.go:22
FunctionabsPathify
(inPath string)
config/util.go:19
Functioninit
()
good/yilaizhurou.go:23
Functioninit
()
filetool/filetool_test.go:13
Functioninit
()
cronjobs/init.go:10
Functionmain
()
a.go:9
← previousnext →401–500 of 502, ranked by callers