Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/farseer-go/fs
/ functions
Functions
589 in github.com/farseer-go/fs
⨍
Functions
589
◇
Types & classes
123
↓ 1 callers
Function
Since
Since time.Now().Sub(dt).
dateTime/dt.go:72
↓ 1 callers
Function
Start
Start 开始运行
timingWheel/defaultTimingWheel.go:15
↓ 1 callers
Function
StartModules
StartModules 启动模块
modules/getDependModule.go:64
↓ 1 callers
Function
StringToNumber
(source string, defVal any, defValKind reflect.Kind)
parse/stringToNumber.go:8
↓ 1 callers
Function
Success
Success 接口调用成功后返回的Json
core/apiResponse.go:47
↓ 1 callers
Function
ThrowExceptionf
ThrowExceptionf 抛出Exception异常
exception/throwException.go:11
↓ 1 callers
Function
ThrowRefuseExceptionf
ThrowRefuseExceptionf 抛出RefuseException异常
exception/refuseException.go:16
↓ 1 callers
Method
ThrowUnCatch
ThrowUnCatch 抛出未捕获的异常
exception/catchException.go:99
↓ 1 callers
Function
ThrowWebException
ThrowWebException 抛出WebException异常
exception/webException.go:17
↓ 1 callers
Function
ThrowWebExceptionBool
ThrowWebExceptionBool 抛出WebException异常
exception/webException.go:30
↓ 1 callers
Function
ThrowWebExceptionError
ThrowWebExceptionError 抛出WebException异常
exception/webException.go:47
↓ 1 callers
Function
ThrowWebExceptionf
ThrowWebExceptionf 抛出WebException异常
exception/webException.go:23
↓ 1 callers
Function
ThrowWebExceptionfBool
ThrowWebExceptionfBool 抛出WebException异常
exception/webException.go:38
↓ 1 callers
Function
ToFloat64
ToFloat64 转换成float64类型
parse/convert.go:296
↓ 1 callers
Function
ToInt16
ToInt16 转换成int16类型
parse/convert.go:284
↓ 1 callers
Function
ToInt32
ToInt32 转换成int32类型
parse/convert.go:287
↓ 1 callers
Function
ToInt8
ToInt8 转换成int8类型
parse/convert.go:281
↓ 1 callers
Method
ToString
()
core/eumLogLevel/enum.go:41
↓ 1 callers
Function
ToUInt64
ToUInt64 转换成uint64类型
parse/convert.go:275
↓ 1 callers
Function
Trace
Trace 打印Trace日志
flog/print.go:14
↓ 1 callers
Method
Trace
(contents ...any)
flog/compositionLogger.go:23
↓ 1 callers
Function
Tracef
Tracef 打印Trace日志
flog/print.go:19
↓ 1 callers
Method
Value
Value return json value, implement driver.Valuer interface
dateTime/dt.go:234
↓ 1 callers
Method
Warning
(contents ...any)
flog/compositionLogger.go:47
↓ 1 callers
Function
Warningf
Warningf 打印Warning日志
flog/print.go:49
↓ 1 callers
Function
currentElapsedTime
(startTime int64)
sonyflake/sonyflake.go:153
↓ 1 callers
Method
enableUpload
开启上传
flog/fopsProvider.go:57
↓ 1 callers
Method
flatteningAny
扁平化any
configure/yamlConfig.go:96
↓ 1 callers
Method
getFileIndex
获取文件索引号
flog/fileProvider.go:139
↓ 1 callers
Method
getFilename
获取文件名称
flog/fileProvider.go:112
↓ 1 callers
Function
getFopsConfigure
()
configure/fopsConfigure.go:22
↓ 1 callers
Method
getLevel
计算出第几层 将第一层的时长开根号,会得出第几层
timingWheel/timingWheel.go:236
↓ 1 callers
Method
injectByType
解析注入
container/container.go:229
↓ 1 callers
Function
isNumber
数字类型
fastReflect/type.go:20
↓ 1 callers
Function
isPrivateIPv4
(ip net.IP)
sonyflake/sonyflake.go:192
↓ 1 callers
Function
isSysCom
(file string)
trace/traceDetail.go:163
↓ 1 callers
Function
lookupEnvIgnoreCase
(key string)
configure/envConfig.go:77
↓ 1 callers
Function
lookupMapKeyIgnoreCase
尝试从之前的map中找到key(忽略大小写) 目的是以yaml的key为准
configure/config.go:148
↓ 1 callers
Function
lower16BitPrivateIP
(interfaceAddrs InterfaceAddrs)
sonyflake/sonyflake.go:197
↓ 1 callers
Function
newConfigurationBuilder
()
configure/config.go:19
↓ 1 callers
Method
order
排序任务,按时间从小到大
timingWheel/timingWheel.go:265
↓ 1 callers
Function
parseConfig
(configType reflect.Type, node any)
configure/parseConfig.go:81
↓ 1 callers
Method
parseType
()
fastReflect/typeMeta.go:61
↓ 1 callers
Method
precision
精确控制时间
timingWheel/timer.go:22
↓ 1 callers
Function
privateIPv4
(interfaceAddrs InterfaceAddrs)
sonyflake/sonyflake.go:172
↓ 1 callers
Method
registerInstance
注册实例
container/container.go:88
↓ 1 callers
Method
removeComponent
移除已注册的实例
container/container.go:264
↓ 1 callers
Method
removeLimitFile
移除超过数量的日志文件
flog/fileProvider.go:167
↓ 1 callers
Method
removeUnused
移除长时间未使用的实例
container/container.go:281
↓ 1 callers
Method
resolveAll
获取所有对象
container/container.go:132
↓ 1 callers
Method
resolveDefaultOrFirstComponent
获取对象,如果默认别名不存在,则使用第一个注册的实例
container/container.go:187
↓ 1 callers
Function
showComponentLog
组件日志
initialize.go:124
↓ 1 callers
Function
sleepTime
(overtime int64)
sonyflake/sonyflake.go:157
↓ 1 callers
Function
testErr
(baseTraceDetail trace.TraceDetail)
test/trace_test.go:56
↓ 1 callers
Method
timerDowngrade
任务降级,把level层的任务降到level-1层
timingWheel/timingWheel.go:212
↓ 1 callers
Method
toID
()
sonyflake/sonyflake.go:162
↓ 1 callers
Method
turning
时间轮开始转动
timingWheel/timingWheel.go:152
↓ 1 callers
Method
turningNextLevel
下一层指针+1
timingWheel/timingWheel.go:189
↓ 1 callers
Method
upload
(lstLog []*LogData)
flog/fopsProvider.go:87
↓ 1 callers
Method
writeFile
将缓冲区的日志,每隔1秒,写入文件
flog/fileProvider.go:71
Method
AddGO
Add 添加异步执行的方法
async/worker.go:31
Function
AddInitCallback
AddInitCallback 添加框架启动完后执行的函数
initialize.go:144
Method
AddProvider
AddProvider 添加多个日志写入提供者(应用初始化时调用)
flog/iLoggerFactory.go:10
Method
AddProvider
(provider ILoggerProvider)
flog/iLoggerFactory.go:21
Method
AddTime
AddTime 添加Time
dateTime/dt.go:145
Method
Begin
Begin 开始 isolationLevels:事务等级
core/iTransaction.go:9
Function
BenchmarkConvert2
BenchmarkConvert2-12 217430817 5.386 ns/op 0 B/op 0 allocs/op
testBenchmark/parse_bm_test.go:179
Function
BenchmarkConvertAll
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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkConvert_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
Function
BenchmarkFastReflect
(b *testing.B)
testBenchmark/fastReflect_test.go:12
Method
Check
()
test/healthCheck_test.go:17
Method
Check
()
test/healthCheck_test.go:25
Function
ClearColor
ClearColor 清除颜色
flog/consoleProvider.go:35
Function
ClearComment
ClearComment 移除注释
trace/global.go:22
Method
Commit
Commit 提交
core/iTransaction.go:11
Method
CreateDatabase
()
test/container_method_test.go:16
Method
CreateLogger
CreateLogger 创建对应的Logger对象,创建Logger
flog/iLoggerProvider.go:7
Method
CreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/fileProvider.go:21
Method
CreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/consoleProvider.go:13
Method
CreateLogger
(categoryName string, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/fopsProvider.go:24
Method
Critical
(contents ...any)
flog/compositionLogger.go:65
Method
Criticalf
Critical Critical日志
core/iLog.go:18
Method
Criticalf
(format string, a ...any)
flog/compositionLogger.go:69
Method
Debugf
Debug Debug日志
core/iLog.go:10
Method
Debugf
(format string, a ...any)
flog/compositionLogger.go:35
Function
Decompose
Decompose returns a set of Sonyflake ID parts.
sonyflake/sonyflake.go:228
← previous
next →
301–400 of 589, ranked by callers