Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-dev-frame/sponge
/ functions
Functions
5,724 in github.com/go-dev-frame/sponge
⨍
Functions
5,724
◇
Types & classes
811
↓ 28 callers
Method
update
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 27 callers
Function
ListFiles
ListFiles iterates over all files in the specified directory, returning the absolute path to the file
pkg/gofile/filePath.go:117
↓ 27 callers
Method
SetOutputDir
(absDir string, name ...string)
pkg/replacer/replacer.go:26
↓ 27 callers
Method
ToRPCErr
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 callers
Function
k
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 26 callers
Function
Init
(configFile string, fs ...func())
internal/config/serverNameExample.go:11
↓ 26 callers
Method
POST
POST send a POST request
pkg/httpcli/httpcli.go:153
↓ 26 callers
Method
ServeHTTP
ServeHTTP handles incoming HTTP requests and forwards them to the backend selected by the load balancer.
pkg/proxykit/proxy.go:25
↓ 26 callers
Function
d
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 25 callers
Method
Create
(ctx context.Context, table *model.UserExample)
internal/dao/userExample.go:23
↓ 25 callers
Method
Write
(b []byte)
pkg/gin/middleware/logging.go:121
↓ 25 callers
Function
en
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 25 callers
Method
parse
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 24 callers
Function
Error
Error return error
pkg/gin/response/response.go:121
↓ 24 callers
Method
Validate
()
pkg/httpsrv/http.go:12
↓ 24 callers
Function
Ve
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 24 callers
Method
getParsed
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 23 callers
Function
GCtxRequestIDField
GCtxRequestIDField get request id field from gin.Context
pkg/gin/middleware/requstid.go:117
↓ 23 callers
Function
Path
(rel string)
configs/location.go:25
↓ 23 callers
Method
SaveFiles
()
pkg/replacer/replacer.go:29
↓ 23 callers
Method
SetSubDirsAndFiles
(subDirs []string, subFiles ...string)
pkg/replacer/replacer.go:23
↓ 23 callers
Function
Y
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 23 callers
Function
respJSONWithStatusCode
(c *gin.Context, code int, msg string, data ...interface{})
pkg/gin/response/response.go:35
↓ 22 callers
Function
Co
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 22 callers
Function
Ds
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 22 callers
Function
Get
Get request, return custom json format
pkg/httpcli/httpcli.go:370
↓ 22 callers
Method
IsHealthy
()
pkg/proxykit/backend.go:91
↓ 22 callers
Function
NewServiceInstance
NewServiceInstance creates a new instance
pkg/servicerd/registry/registry.go:51
↓ 22 callers
Method
Stat
Stat tasks a snapshot of the bbr limiter.
pkg/shield/ratelimit/bbr.go:281
↓ 22 callers
Function
bn
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 22 callers
Method
getPixelForValue
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 22 callers
Method
isHorizontal
()
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 22 callers
Function
w
(e,t,n,r)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 21 callers
Method
Next
(r *http.Request)
pkg/proxykit/balancer.go:20
↓ 21 callers
Function
Ts
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 21 callers
Function
i
(i)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 21 callers
Function
v
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 20 callers
Method
Handle
(ctx context.Context, payload T)
pkg/sasynq/task.go:14
↓ 20 callers
Function
Kn
(t,e,i,s,n,o)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 20 callers
Method
SetReplacementFields
(fields []Field)
pkg/replacer/replacer.go:22
↓ 20 callers
Function
Wo
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 20 callers
Function
er
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 20 callers
Function
newTestBackend
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 callers
Method
resolveDataElementOptions
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 19 callers
Method
Bucket
Bucket returns the bucket where index equals the given offset.
pkg/shield/window/window.go:94
↓ 19 callers
Method
ErrToHTTP
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 callers
Function
Error
Error level information
pkg/logger/method.go:25
↓ 19 callers
Function
Generate
Generate model, json, dao, handler, proto codes
pkg/sql2code/sql2code.go:212
↓ 19 callers
Function
GetFilename
GetFilename get file name
pkg/gofile/filePath.go:31
↓ 19 callers
Function
Hash
Hash commonly used hash sets
pkg/gocrypto/hash.go:69
↓ 19 callers
Method
Next
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 callers
Function
Si
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 19 callers
Function
getSrcContent
(srcLines []string, start, end int)
pkg/goast/ast.go:802
↓ 19 callers
Function
toRPCErr
(code codes.Code, descs ...string)
pkg/errcode/rpc_error.go:139
↓ 19 callers
Function
tt
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 18 callers
Function
BuildCacheKey
BuildCacheKey construct a cache key with a prefix
pkg/cache/redis.go:205
↓ 18 callers
Function
Fr
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 18 callers
Method
Skip
Skip get offset value
pkg/mgo/query/page.go:53
↓ 18 callers
Method
Wait
Wait returns a channel that will be closed when the client is disconnected.
pkg/sse/client.go:129
↓ 18 callers
Function
WithSuffix
WithSuffix set suffix matching
pkg/gofile/option.go:36
↓ 18 callers
Function
Z
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 18 callers
Function
float64ToStringNoRound
(f float64)
cmd/sponge/commands/perftest/http/stats.go:185
↓ 18 callers
Function
g
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 18 callers
Function
newRequest
(t *testing.T, r *gin.Engine, method, url string)
pkg/gin/staticfs/listdir_test.go:54
↓ 18 callers
Function
performRequest
(r http.Handler, method, path string)
pkg/gin/staticfs/staticfs_test.go:80
↓ 17 callers
Function
Cors
Cors cross domain
pkg/gin/middleware/cors.go:102
↓ 17 callers
Method
Count
Count consumer success message number
pkg/rabbitmq/consumer.go:449
↓ 17 callers
Function
Eo
(e,t)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 17 callers
Function
GenerateToken
------------------------------- one token ------------------------------- GenerateToken create token by uid and name, use universal Claims
pkg/jwt/jwt.go:112
↓ 17 callers
Function
IsWindows
IsWindows determining whether a window environment
pkg/gofile/filePath.go:102
↓ 17 callers
Function
NewConnection
NewConnection rabbitmq connection
pkg/rabbitmq/connection.go:100
↓ 17 callers
Function
Post
Post request, return custom json format
pkg/httpcli/httpcli.go:384
↓ 17 callers
Method
Start
()
pkg/app/app.go:18
↓ 17 callers
Function
StrToInt
StrToInt string to int
pkg/utils/type_convert.go:11
↓ 17 callers
Function
deleteAllFieldsMark
(r replacer.Replacer, filename string, startMark []byte, endMark []byte)
cmd/sponge/commands/generate/common.go:273
↓ 17 callers
Method
format
()
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 17 callers
Method
from
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:41
↓ 17 callers
Function
jn
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 17 callers
Method
o
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:41
↓ 17 callers
Function
x
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 17 callers
Function
yn
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 16 callers
Function
CtxRequestIDField
CtxRequestIDField get request id field from context.Context
pkg/gin/middleware/requstid.go:166
↓ 16 callers
Function
GetAvailablePort
GetAvailablePort get available port
pkg/utils/host.go:32
↓ 16 callers
Function
Ke
(e)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
↓ 16 callers
Method
Len
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 callers
Function
NewBackend
NewBackend creates a new Backend instance.
pkg/proxykit/backend.go:56
↓ 16 callers
Function
NewCache
NewCache instantiated redis cache
pkg/gotest/cache.go:23
↓ 16 callers
Method
Scan
Scan implement Scanner interface to read values from database
pkg/sgorm/user_defined.go:14
↓ 16 callers
Method
Shutdown
Shutdown gracefully shuts down the server and releases resources.
pkg/httpsrv/http.go:68
↓ 16 callers
Function
T
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:14
↓ 16 callers
Function
Ui
(e,t,n,i,r)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:22
↓ 16 callers
Method
Value
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 callers
Function
do
------------------------------------------------------------------------------------------
pkg/gin/validator/validator_test.go:380
↓ 16 callers
Function
ft
(t,e,i)
cmd/sponge/commands/perftest/http/perftest/chart.js:7
↓ 16 callers
Method
get
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callers
Function
isProcessRunning
isProcessRunning: checks if a process exists using syscall.Kill(pid, 0).
pkg/process/kill_unix.go:26
↓ 16 callers
Function
ki
(t)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callers
Function
se
(e,t,n,i)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:1
↓ 16 callers
Method
set
(t,e)
cmd/sponge/commands/perftest/http/perftest/chart.js:13
↓ 16 callers
Function
xo
(e,t,n)
cmd/sponge/server/static/js/vendor.81645738747fb507a683.js:7
← previous
next →
101–200 of 5,724, ranked by callers