MCPcopy Create free account

hub / github.com/farseer-go/fs / functions

Functions589 in github.com/farseer-go/fs

↓ 1 callersFunctionSince
Since time.Now().Sub(dt).
dateTime/dt.go:72
↓ 1 callersFunctionStart
Start 开始运行
timingWheel/defaultTimingWheel.go:15
↓ 1 callersFunctionStartModules
StartModules 启动模块
modules/getDependModule.go:64
↓ 1 callersFunctionStringToNumber
(source string, defVal any, defValKind reflect.Kind)
parse/stringToNumber.go:8
↓ 1 callersFunctionSuccess
Success 接口调用成功后返回的Json
core/apiResponse.go:47
↓ 1 callersFunctionThrowExceptionf
ThrowExceptionf 抛出Exception异常
exception/throwException.go:11
↓ 1 callersFunctionThrowRefuseExceptionf
ThrowRefuseExceptionf 抛出RefuseException异常
exception/refuseException.go:16
↓ 1 callersMethodThrowUnCatch
ThrowUnCatch 抛出未捕获的异常
exception/catchException.go:99
↓ 1 callersFunctionThrowWebException
ThrowWebException 抛出WebException异常
exception/webException.go:17
↓ 1 callersFunctionThrowWebExceptionBool
ThrowWebExceptionBool 抛出WebException异常
exception/webException.go:30
↓ 1 callersFunctionThrowWebExceptionError
ThrowWebExceptionError 抛出WebException异常
exception/webException.go:47
↓ 1 callersFunctionThrowWebExceptionf
ThrowWebExceptionf 抛出WebException异常
exception/webException.go:23
↓ 1 callersFunctionThrowWebExceptionfBool
ThrowWebExceptionfBool 抛出WebException异常
exception/webException.go:38
↓ 1 callersFunctionToFloat64
ToFloat64 转换成float64类型
parse/convert.go:296
↓ 1 callersFunctionToInt16
ToInt16 转换成int16类型
parse/convert.go:284
↓ 1 callersFunctionToInt32
ToInt32 转换成int32类型
parse/convert.go:287
↓ 1 callersFunctionToInt8
ToInt8 转换成int8类型
parse/convert.go:281
↓ 1 callersMethodToString
()
core/eumLogLevel/enum.go:41
↓ 1 callersFunctionToUInt64
ToUInt64 转换成uint64类型
parse/convert.go:275
↓ 1 callersFunctionTrace
Trace 打印Trace日志
flog/print.go:14
↓ 1 callersMethodTrace
(contents ...any)
flog/compositionLogger.go:23
↓ 1 callersFunctionTracef
Tracef 打印Trace日志
flog/print.go:19
↓ 1 callersMethodValue
Value return json value, implement driver.Valuer interface
dateTime/dt.go:234
↓ 1 callersMethodWarning
(contents ...any)
flog/compositionLogger.go:47
↓ 1 callersFunctionWarningf
Warningf 打印Warning日志
flog/print.go:49
↓ 1 callersFunctioncurrentElapsedTime
(startTime int64)
sonyflake/sonyflake.go:153
↓ 1 callersMethodenableUpload
开启上传
flog/fopsProvider.go:57
↓ 1 callersMethodflatteningAny
扁平化any
configure/yamlConfig.go:96
↓ 1 callersMethodgetFileIndex
获取文件索引号
flog/fileProvider.go:139
↓ 1 callersMethodgetFilename
获取文件名称
flog/fileProvider.go:112
↓ 1 callersFunctiongetFopsConfigure
()
configure/fopsConfigure.go:22
↓ 1 callersMethodgetLevel
计算出第几层 将第一层的时长开根号,会得出第几层
timingWheel/timingWheel.go:236
↓ 1 callersMethodinjectByType
解析注入
container/container.go:229
↓ 1 callersFunctionisNumber
数字类型
fastReflect/type.go:20
↓ 1 callersFunctionisPrivateIPv4
(ip net.IP)
sonyflake/sonyflake.go:192
↓ 1 callersFunctionisSysCom
(file string)
trace/traceDetail.go:163
↓ 1 callersFunctionlookupEnvIgnoreCase
(key string)
configure/envConfig.go:77
↓ 1 callersFunctionlookupMapKeyIgnoreCase
尝试从之前的map中找到key(忽略大小写) 目的是以yaml的key为准
configure/config.go:148
↓ 1 callersFunctionlower16BitPrivateIP
(interfaceAddrs InterfaceAddrs)
sonyflake/sonyflake.go:197
↓ 1 callersFunctionnewConfigurationBuilder
()
configure/config.go:19
↓ 1 callersMethodorder
排序任务,按时间从小到大
timingWheel/timingWheel.go:265
↓ 1 callersFunctionparseConfig
(configType reflect.Type, node any)
configure/parseConfig.go:81
↓ 1 callersMethodparseType
()
fastReflect/typeMeta.go:61
↓ 1 callersMethodprecision
精确控制时间
timingWheel/timer.go:22
↓ 1 callersFunctionprivateIPv4
(interfaceAddrs InterfaceAddrs)
sonyflake/sonyflake.go:172
↓ 1 callersMethodregisterInstance
注册实例
container/container.go:88
↓ 1 callersMethodremoveComponent
移除已注册的实例
container/container.go:264
↓ 1 callersMethodremoveLimitFile
移除超过数量的日志文件
flog/fileProvider.go:167
↓ 1 callersMethodremoveUnused
移除长时间未使用的实例
container/container.go:281
↓ 1 callersMethodresolveAll
获取所有对象
container/container.go:132
↓ 1 callersMethodresolveDefaultOrFirstComponent
获取对象,如果默认别名不存在,则使用第一个注册的实例
container/container.go:187
↓ 1 callersFunctionshowComponentLog
组件日志
initialize.go:124
↓ 1 callersFunctionsleepTime
(overtime int64)
sonyflake/sonyflake.go:157
↓ 1 callersFunctiontestErr
(baseTraceDetail trace.TraceDetail)
test/trace_test.go:56
↓ 1 callersMethodtimerDowngrade
任务降级,把level层的任务降到level-1层
timingWheel/timingWheel.go:212
↓ 1 callersMethodtoID
()
sonyflake/sonyflake.go:162
↓ 1 callersMethodturning
时间轮开始转动
timingWheel/timingWheel.go:152
↓ 1 callersMethodturningNextLevel
下一层指针+1
timingWheel/timingWheel.go:189
↓ 1 callersMethodupload
(lstLog []*LogData)
flog/fopsProvider.go:87
↓ 1 callersMethodwriteFile
将缓冲区的日志,每隔1秒,写入文件
flog/fileProvider.go:71
MethodAddGO
Add 添加异步执行的方法
async/worker.go:31
FunctionAddInitCallback
AddInitCallback 添加框架启动完后执行的函数
initialize.go:144
MethodAddProvider
AddProvider 添加多个日志写入提供者(应用初始化时调用)
flog/iLoggerFactory.go:10
MethodAddProvider
(provider ILoggerProvider)
flog/iLoggerFactory.go:21
MethodAddTime
AddTime 添加Time
dateTime/dt.go:145
MethodBegin
Begin 开始 isolationLevels:事务等级
core/iTransaction.go:9
FunctionBenchmarkConvert2
BenchmarkConvert2-12 217430817 5.386 ns/op 0 B/op 0 allocs/op
testBenchmark/parse_bm_test.go:179
FunctionBenchmarkConvertAll
BenchmarkConvertAll-12 446144 2876 ns/op 656 B/op 30 allocs/op BenchmarkConvertAll-12 767450 1527 ns/op 424
testBenchmark/parse_bm_test.go:13
FunctionBenchmarkConvert_0_false
BenchmarkConvert_0_false-12 52777993 22.17 ns/op 0 B/op 0 allocs/op BenchmarkConvert_0_false-12 86714840 13.64
testBenchmark/parse_bm_test.go:58
FunctionBenchmarkConvert_123_
BenchmarkConvert_123_-12 55135886 22.83 ns/op 0 B/op 0 allocs/op BenchmarkConvert_123_-12 92884807 12.67 ns/op
testBenchmark/parse_bm_test.go:85
FunctionBenchmarkConvert_123_0
BenchmarkConvert_123_0-12 21935886 55.41 ns/op 0 B/op 0 allocs/op BenchmarkConvert_123_0-12 41578650 28.64 ns
testBenchmark/parse_bm_test.go:94
FunctionBenchmarkConvert_123_slice_int
BenchmarkConvert_123_slice_int-12 1350770 891.7 ns/op 288 B/op 16 allocs/op BenchmarkConvert_123_slice_int-12 2734504
testBenchmark/parse_bm_test.go:103
FunctionBenchmarkConvert_1_
BenchmarkConvert_1_-12 20579169 56.01 ns/op 16 B/op 1 allocs/op BenchmarkConvert_1_-12 73151695 16.07 ns/op
testBenchmark/parse_bm_test.go:49
FunctionBenchmarkConvert_1_0
BenchmarkConvert_1_0-12 55259283 20.54 ns/op 0 B/op 0 allocs/op BenchmarkConvert_1_0-12 94150036 12.57 ns/op
testBenchmark/parse_bm_test.go:40
FunctionBenchmarkConvert_456_slice_string
BenchmarkConvert_456_slice_string-12 8019180 140.1 ns/op 72 B/op 2 allocs/op BenchmarkConvert_456_slice_string-12 868597
testBenchmark/parse_bm_test.go:112
FunctionBenchmarkConvert_8_float64_1
BenchmarkConvert_8_float64_1-12 13724061 87.94 ns/op 16 B/op 2 allocs/op BenchmarkConvert_8_float64_1-12 21466652
testBenchmark/parse_bm_test.go:76
FunctionBenchmarkConvert_8_int8_1
BenchmarkConvert_8_int8_1-12 23033266 51.93 ns/op 0 B/op 0 allocs/op BenchmarkConvert_8_int8_1-12 47946500 24.58
testBenchmark/parse_bm_test.go:67
FunctionBenchmarkConvert_dateTime_time
BenchmarkConvert_dateTime_time-12 6663381 189.2 ns/op 48 B/op 2 allocs/op BenchmarkConvert_dateTime_time-12 14563110
testBenchmark/parse_bm_test.go:160
FunctionBenchmarkConvert_string_dateTime
BenchmarkConvert_string_dateTime-12 2564781 477.2 ns/op 120 B/op 3 allocs/op BenchmarkConvert_string_dateTime-12 5185413
testBenchmark/parse_bm_test.go:171
FunctionBenchmarkConvert_time_dateTime
BenchmarkConvert_time_dateTime-12 6119569 177.1 ns/op 48 B/op 2 allocs/op BenchmarkConvert_time_dateTime-12 13504820
testBenchmark/parse_bm_test.go:150
FunctionBenchmarkConvert_time_time
BenchmarkConvert_time_time-12 6806041 179.2 ns/op 48 B/op 2 allocs/op BenchmarkConvert_time_time-12 15118432 7
testBenchmark/parse_bm_test.go:139
FunctionBenchmarkConvert_true_
BenchmarkConvert_true_-12 53397604 24.48 ns/op 0 B/op 0 allocs/op BenchmarkConvert_true_-12 71195629 14.24 ns
testBenchmark/parse_bm_test.go:130
FunctionBenchmarkConvert_true_false
BenchmarkConvert_true_false-12 36805489 33.05 ns/op 0 B/op 0 allocs/op BenchmarkConvert_true_false-12 63328722
testBenchmark/parse_bm_test.go:121
FunctionBenchmarkFastReflect
(b *testing.B)
testBenchmark/fastReflect_test.go:12
MethodCheck
()
test/healthCheck_test.go:17
MethodCheck
()
test/healthCheck_test.go:25
FunctionClearColor
ClearColor 清除颜色
flog/consoleProvider.go:35
FunctionClearComment
ClearComment 移除注释
trace/global.go:22
MethodCommit
Commit 提交
core/iTransaction.go:11
MethodCreateDatabase
()
test/container_method_test.go:16
MethodCreateLogger
CreateLogger 创建对应的Logger对象,创建Logger
flog/iLoggerProvider.go:7
MethodCreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/fileProvider.go:21
MethodCreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/consoleProvider.go:13
MethodCreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/fopsProvider.go:24
MethodCritical
(contents ...any)
flog/compositionLogger.go:65
MethodCriticalf
Critical Critical日志
core/iLog.go:18
MethodCriticalf
(format string, a ...any)
flog/compositionLogger.go:69
MethodDebugf
Debug Debug日志
core/iLog.go:10
MethodDebugf
(format string, a ...any)
flog/compositionLogger.go:35
FunctionDecompose
Decompose returns a set of Sonyflake ID parts.
sonyflake/sonyflake.go:228
← previousnext →301–400 of 589, ranked by callers