MCPcopy Create free account

hub / github.com/go-dev-frame/sponge / functions

Functions5,724 in github.com/go-dev-frame/sponge

↓ 28 callersMethodupdate
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 27 callersFunctionListFiles
ListFiles iterates over all files in the specified directory, returning the absolute path to the file
pkg/gofile/filePath.go:117
↓ 27 callersMethodSetOutputDir
(absDir string, name ...string)
pkg/replacer/replacer.go:26
↓ 27 callersMethodToRPCErr
ToRPCErr converted to standard RPC error, use it if you need to convert to standard RPC errors, if there is a parameter 'desc', it will replace the or
pkg/errcode/rpc_error.go:91
↓ 27 callersFunctionk
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 26 callersFunctionInit
(configFile string, fs ...func())
internal/config/serverNameExample.go:11
↓ 26 callersMethodPOST
POST send a POST request
pkg/httpcli/httpcli.go:153
↓ 26 callersMethodServeHTTP
ServeHTTP handles incoming HTTP requests and forwards them to the backend selected by the load balancer.
pkg/proxykit/proxy.go:25
↓ 26 callersFunctiond
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 25 callersMethodCreate
(ctx context.Context, table *model.UserExample)
internal/dao/userExample.go:23
↓ 25 callersMethodWrite
(b []byte)
pkg/gin/middleware/logging.go:121
↓ 25 callersFunctionen
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 25 callersMethodparse
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 24 callersFunctionError
Error return error
pkg/gin/response/response.go:121
↓ 24 callersMethodValidate
()
pkg/httpsrv/http.go:12
↓ 24 callersFunctionVe
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 24 callersMethodgetParsed
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 23 callersFunctionGCtxRequestIDField
GCtxRequestIDField get request id field from gin.Context
pkg/gin/middleware/requstid.go:117
↓ 23 callersFunctionPath
(rel string)
configs/location.go:25
↓ 23 callersMethodSaveFiles
()
pkg/replacer/replacer.go:29
↓ 23 callersMethodSetSubDirsAndFiles
(subDirs []string, subFiles ...string)
pkg/replacer/replacer.go:23
↓ 23 callersFunctionY
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 23 callersFunctionrespJSONWithStatusCode
(c *gin.Context, code int, msg string, data ...interface{})
pkg/gin/response/response.go:35
↓ 22 callersFunctionCo
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 22 callersFunctionDs
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 22 callersFunctionGet
Get request, return custom json format
pkg/httpcli/httpcli.go:370
↓ 22 callersMethodIsHealthy
()
pkg/proxykit/backend.go:91
↓ 22 callersFunctionNewServiceInstance
NewServiceInstance creates a new instance
pkg/servicerd/registry/registry.go:51
↓ 22 callersMethodStat
Stat tasks a snapshot of the bbr limiter.
pkg/shield/ratelimit/bbr.go:281
↓ 22 callersFunctionbn
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 22 callersMethodgetPixelForValue
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 22 callersMethodisHorizontal
()
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 22 callersFunctionw
(e,t,n,r)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 21 callersMethodNext
(r *http.Request)
pkg/proxykit/balancer.go:20
↓ 21 callersFunctionTs
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 21 callersFunctioni
(i)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 21 callersFunctionv
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 20 callersMethodHandle
(ctx context.Context, payload T)
pkg/sasynq/task.go:14
↓ 20 callersFunctionKn
(t,e,i,s,n,o)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 20 callersMethodSetReplacementFields
(fields []Field)
pkg/replacer/replacer.go:22
↓ 20 callersFunctionWo
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 20 callersFunctioner
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 20 callersFunctionnewTestBackend
newTestBackend is a helper to create backends for balancer tests. Note: This uses the *real* NewBackend, so we can test state.
pkg/proxykit/balancer_test.go:16
↓ 20 callersMethodresolveDataElementOptions
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 19 callersMethodBucket
Bucket returns the bucket where index equals the given offset.
pkg/shield/window/window.go:94
↓ 19 callersMethodErrToHTTP
ErrToHTTP convert to standard error add ToHTTPCodeLabel to error message, use it if you need to convert to standard HTTP status code, if there is a pa
pkg/errcode/http_error.go:61
↓ 19 callersFunctionError
Error level information
pkg/logger/method.go:25
↓ 19 callersFunctionGenerate
Generate model, json, dao, handler, proto codes
pkg/sql2code/sql2code.go:212
↓ 19 callersFunctionGetFilename
GetFilename get file name
pkg/gofile/filePath.go:31
↓ 19 callersFunctionHash
Hash commonly used hash sets
pkg/gocrypto/hash.go:69
↓ 19 callersMethodNext
Next returns services in the following two cases: 1.the first time to watch and the service instance list is not empty. 2.any service instance changes
pkg/servicerd/registry/registry.go:28
↓ 19 callersFunctionSi
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 19 callersFunctiongetSrcContent
(srcLines []string, start, end int)
pkg/goast/ast.go:802
↓ 19 callersFunctiontoRPCErr
(code codes.Code, descs ...string)
pkg/errcode/rpc_error.go:139
↓ 19 callersFunctiontt
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 18 callersFunctionBuildCacheKey
BuildCacheKey construct a cache key with a prefix
pkg/cache/redis.go:205
↓ 18 callersFunctionFr
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 18 callersMethodSkip
Skip get offset value
pkg/mgo/query/page.go:53
↓ 18 callersMethodWait
Wait returns a channel that will be closed when the client is disconnected.
pkg/sse/client.go:129
↓ 18 callersFunctionWithSuffix
WithSuffix set suffix matching
pkg/gofile/option.go:36
↓ 18 callersFunctionZ
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 18 callersFunctionfloat64ToStringNoRound
(f float64)
cmd/sponge/commands/perftest/http/stats.go:185
↓ 18 callersFunctiong
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 18 callersFunctionnewRequest
(t *testing.T, r *gin.Engine, method, url string)
pkg/gin/staticfs/listdir_test.go:54
↓ 18 callersFunctionperformRequest
(r http.Handler, method, path string)
pkg/gin/staticfs/staticfs_test.go:80
↓ 17 callersFunctionCors
Cors cross domain
pkg/gin/middleware/cors.go:102
↓ 17 callersMethodCount
Count consumer success message number
pkg/rabbitmq/consumer.go:449
↓ 17 callersFunctionEo
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 17 callersFunctionGenerateToken
------------------------------- one token ------------------------------- GenerateToken create token by uid and name, use universal Claims
pkg/jwt/jwt.go:112
↓ 17 callersFunctionIsWindows
IsWindows determining whether a window environment
pkg/gofile/filePath.go:102
↓ 17 callersFunctionNewConnection
NewConnection rabbitmq connection
pkg/rabbitmq/connection.go:100
↓ 17 callersFunctionPost
Post request, return custom json format
pkg/httpcli/httpcli.go:384
↓ 17 callersMethodStart
()
pkg/app/app.go:18
↓ 17 callersFunctionStrToInt
StrToInt string to int
pkg/utils/type_convert.go:11
↓ 17 callersFunctiondeleteAllFieldsMark
(r replacer.Replacer, filename string, startMark []byte, endMark []byte)
cmd/sponge/commands/generate/common.go:273
↓ 17 callersMethodformat
()
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 17 callersMethodfrom
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:41
↓ 17 callersFunctionjn
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 17 callersMethodo
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:41
↓ 17 callersFunctionx
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 17 callersFunctionyn
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 16 callersFunctionCtxRequestIDField
CtxRequestIDField get request id field from context.Context
pkg/gin/middleware/requstid.go:166
↓ 16 callersFunctionGetAvailablePort
GetAvailablePort get available port
pkg/utils/host.go:32
↓ 16 callersFunctionKe
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 16 callersMethodLen
Len Gets the number of elements in Map Note: Due to the nature of sync.Map, this operation is O(n) complex
pkg/sse/safemap.go:78
↓ 16 callersFunctionNewBackend
NewBackend creates a new Backend instance.
pkg/proxykit/backend.go:56
↓ 16 callersFunctionNewCache
NewCache instantiated redis cache
pkg/gotest/cache.go:23
↓ 16 callersMethodScan
Scan implement Scanner interface to read values from database
pkg/sgorm/user_defined.go:14
↓ 16 callersMethodShutdown
Shutdown gracefully shuts down the server and releases resources.
pkg/httpsrv/http.go:68
↓ 16 callersFunctionT
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:14
↓ 16 callersFunctionUi
(e,t,n,i,r)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 16 callersMethodValue
Value gets the current value. If the metric's type is PointGauge, RollingCounter, RollingGauge, it returns the sum value within the window.
pkg/shield/window/counter.go:17
↓ 16 callersFunctiondo
------------------------------------------------------------------------------------------
pkg/gin/validator/validator_test.go:380
↓ 16 callersFunctionft
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 16 callersMethodget
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callersFunctionisProcessRunning
isProcessRunning: checks if a process exists using syscall.Kill(pid, 0).
pkg/process/kill_unix.go:26
↓ 16 callersFunctionki
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callersFunctionse
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 16 callersMethodset
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callersFunctionxo
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
← previousnext →101–200 of 5,724, ranked by callers