MCPcopy Create free account

hub / github.com/Shopify/goose / functions

Functions660 in github.com/Shopify/goose

↓ 69 callersMethodGet
()
statetracker/tracker.go:14
↓ 51 callersMethodError
()
safely/safely.go:26
↓ 45 callersMethodHeader
()
srvutil/metrics_test.go:96
↓ 40 callersMethodString
()
syncio/buffer.go:118
↓ 36 callersMethodRun
()
lockmap/map.go:28
↓ 35 callersMethodServeHTTP
(res http.ResponseWriter, req *http.Request)
srvutil/servlet_test.go:34
↓ 28 callersFunctionnewBugsnagData
(rawData []interface{})
bugsnag/bugsnagdata_test.go:12
↓ 23 callersFunctionWithField
WithField attaches a key-value pair to a Context. Upon logging, the pair will be attached as metadata.
logger/loggable.go:58
↓ 21 callersFunctioncheck
Verify that contents of buf match the string s.
syncio/buffer_test.go:31
↓ 20 callersMethodRun
Run executes a function, making sure at most a certain number of calls are executing simultaneously It does _not_ start a goroutine, the function will
concurrency/limiter.go:21
↓ 20 callersFunctiongetStatsTags
getStatsTags returns the merged tags as a list Meant to be used by the metrics when inlining the tags
statsd/taggable.go:86
↓ 18 callersMethodError
()
bugsnag/with_class.go:22
↓ 18 callersFunctionNew
(name string)
logger/logger.go:19
↓ 18 callersMethodSet
Set counts the number of unique elements in a group.
statsd/statsd.go:34
↓ 18 callersMethodSignal
Signal will signal to a waiting thread, if any. Requires L to be locked.
cond/cond.go:114
↓ 16 callersMethodKill
(signal syscall.Signal)
shell/supervisor.go:24
↓ 16 callersFunctionNewCond
(l sync.Locker)
cond/cond.go:27
↓ 15 callersMethodAddr
()
srvutil/server.go:24
↓ 15 callersMethodWrite
(p []byte)
syncio/buffer.go:22
↓ 14 callersMethodDuration
The time that the StateTracker has spent being "previous" If already "desired", returns 0
statetracker/tracker.go:19
↓ 14 callersMethodStartTimer
StartTimer provides a way to collect a duration metric for a function call in one line. Examples: func foo() { defer t.StartTimer().Finish()
statsd/timer.go:82
↓ 14 callersMethodWait
Wait unconditionally waits for a signal. Requires L to be locked.
cond/cond.go:37
↓ 14 callersFunctionWithTags
WithTags attaches fields to a Context. Upon recording a metric, those fields will be attached as tags.
statsd/taggable.go:65
↓ 13 callersMethodCmd
()
shell/supervisor.go:19
↓ 13 callersMethodRun
Run begins the Runnable's main run loop.
safely/safely.go:53
↓ 13 callersMethodbuildData
Optional metadata can be passed in as well, however only certain types of those will have an effect: * string will be used to set the BS context (usua
bugsnag/bugsnagger.go:52
↓ 13 callersFunctioncheckData
(ctx context.Context, t *testing.T, expected logrus.Fields)
logger/loggable_test.go:208
↓ 12 callersMethodLen
()
syncio/buffer.go:135
↓ 12 callersMethodRegisterRouting
(r *mux.Router)
srvutil/servlet.go:19
↓ 11 callersFunctionGetLoggableValue
GetLoggableValue returns the value of the metadata currently attached to the Context.
logger/loggable.go:84
↓ 11 callersMethodSuccessFinish
(err *error, ts ...Tags)
statsd/timer.go:38
↓ 10 callersFunctionNewBuffer
(buf []byte)
syncio/buffer.go:157
↓ 10 callersMethodTomb
Allows the LockMap to be started and stopped externally
lockmap/map.go:27
↓ 9 callersFunctionNew
(ctx context.Context, path string, args ...string)
shell/shell.go:21
↓ 9 callersMethodWait
()
shell/supervisor.go:23
↓ 9 callersMethodWait
Wait returns the Promise for a key. If the Promise is expired, it will be resolved, but this function will return nil
lockmap/map.go:17
↓ 9 callersMethodWriteHeader
(statusCode int)
srvutil/recorder.go:30
↓ 9 callersFunctionempty
Empty buf through repeated reads into fub. The initial contents of buf corresponds to the string s.
syncio/buffer_test.go:101
↓ 9 callersMethodretry
(ctx context.Context, fn func() error)
resolver/retry_resolver.go:37
↓ 8 callersMethodBroadcast
Broadcast will signal to all waiting threads, if any. Requires L to be locked.
cond/cond.go:128
↓ 8 callersFunctionFuncServlet
FuncServlet creates a Servlet from a function.
srvutil/servlet.go:29
↓ 8 callersMethodSet
(interface{})
statetracker/tracker.go:15
↓ 8 callersMethodStart
()
shell/supervisor.go:20
↓ 8 callersMethodTomb
()
genmain/genmain_test.go:65
↓ 8 callersFunctionUseServlet
UseServlet applies a middleware to a whole Servlet. Great for applying authentication layers.
srvutil/servlet.go:51
↓ 8 callersFunctionexpectCount
(t *testing.T, call func() int32, expected int32)
concurrency/limiter_test.go:75
↓ 8 callersMethodgetContext
()
bugsnag/bugsnagdata_test.go:51
↓ 8 callersFunctionmakeErrorArgs
(length int, err error)
resolver/retry_resolver_test.go:46
↓ 7 callersMethodAverage
()
timetracker/tracker.go:10
↓ 7 callersMethodBytes
()
syncio/buffer.go:129
↓ 7 callersMethodCause
()
bugsnag/with_class.go:73
↓ 7 callersMethodLookupTXT
(ctx context.Context, name string)
resolver/resolver.go:22
↓ 7 callersMethodNotify
Notify annotates bugsnag entries with metadata and then sends it to bugsnag
bugsnag/bugsnagger.go:156
↓ 7 callersMethodRate
()
statsd/collector.go:11
↓ 7 callersMethodRead
(p []byte)
syncio/buffer.go:16
↓ 7 callersFunctionRun
(r Runnable)
safely/safely.go:56
↓ 7 callersFunctionSetBackend
SetBackend replaces the current backend with the given Backend.
statsd/statsd.go:42
↓ 7 callersMethodString
(s, d, _ string)
profiler/ui.go:123
↓ 7 callersMethodValue
(key interface{})
logger/loggable.go:22
↓ 7 callersMethodWaitOrLock
WaitOrLock takes the lock, but only if none exists for that key. If the Promise is expired, it will successfully replace it and the previous Promise w
lockmap/map.go:21
↓ 7 callersMethodgetBugsnaggoErrorClass
()
bugsnag/bugsnagdata_test.go:18
↓ 7 callersFunctionwarnIfError
(ctx context.Context, err error)
statsd/statsd.go:68
↓ 6 callersMethodClose
()
logrussplunk/splunk.go:56
↓ 6 callersMethodLookupAddr
(ctx context.Context, addr string)
resolver/resolver.go:23
↓ 6 callersMethodLookupCNAME
(ctx context.Context, host string)
resolver/resolver.go:18
↓ 6 callersMethodLookupHost
(ctx context.Context, host string)
resolver/resolver.go:15
↓ 6 callersMethodLookupIPAddr
(ctx context.Context, host string)
resolver/resolver.go:16
↓ 6 callersMethodLookupMX
(ctx context.Context, name string)
resolver/resolver.go:20
↓ 6 callersMethodLookupNS
(ctx context.Context, name string)
resolver/resolver.go:21
↓ 6 callersMethodLookupPort
(ctx context.Context, network, service string)
resolver/resolver.go:17
↓ 6 callersMethodLookupSRV
(ctx context.Context, service, proto, name string)
resolver/resolver.go:19
↓ 6 callersFunctionNewBuilder
(ctx context.Context, path string, args ...string)
shell/shell.go:32
↓ 6 callersMethodPrepare
()
shell/builder.go:19
↓ 6 callersMethodRunAndGetOutput
()
shell/supervisor.go:22
↓ 6 callersFunctionWithFields
WithFields attaches fields to a Context. Upon logging, those fields will be attached as metadata.
logger/loggable.go:64
↓ 6 callersMethodWrite
(p []byte)
shell/shell_test.go:93
↓ 6 callersFunctionbenchmarkCond
(b *testing.B, waiters int)
cond/cond_test.go:484
↓ 6 callersMethodhasErrTab
()
bugsnag/bugsnagdata_test.go:27
↓ 6 callersFunctionwithRetry
(t *testing.T, fn func(m *mockResolver, r Resolver))
resolver/retry_resolver_test.go:37
↓ 5 callersMethodCap
()
syncio/buffer.go:141
↓ 5 callersMethodCount
Count takes an integer -- typically 1 -- and increments the counter by this value. The last parameter is an arbitrary array of tags as maps.
statsd/counter.go:13
↓ 5 callersMethodFinish
(ts ...Tags)
statsd/timer.go:37
↓ 5 callersFunctionGetLoggableValues
(ctx Valuer)
logger/loggable.go:92
↓ 5 callersFunctionNewLimiter
(concurrency uint)
concurrency/limiter.go:47
↓ 5 callersFunctionNewNullBackend
NewNullBackend returns a new backend that no-ops every metric.
statsd/null_backend.go:8
↓ 5 callersFunctionNewServer
(t *tomb.Tomb, bind string, servlet Servlet)
srvutil/server.go:27
↓ 5 callersMethodReset
()
syncio/buffer.go:100
↓ 5 callersMethodTomb
Tomb returns this Runnable's tomb used for lifecycle management.
safely/safely.go:50
↓ 5 callersMethodWaiting
Waiting returns a (racy) counter of how many Run calls are currently waiting to run.
concurrency/limiter.go:24
↓ 5 callersFunctionWithErrorClass
WithErrorClass wraps the error with an error class used to control the grouping in Bugsnag
bugsnag/with_class.go:51
↓ 5 callersMethodWrite
(data []byte)
srvutil/recorder.go:35
↓ 5 callersMethodWriteRune
(r rune)
syncio/buffer.go:52
↓ 5 callersMethodWriteString
(s string)
syncio/buffer.go:88
↓ 5 callersFunctioncomponentName
(comp Component)
genmain/genmain.go:230
↓ 5 callersFunctionextractErrorClass
(err error)
bugsnag/with_class.go:71
↓ 5 callersFunctionfillBytes
Fill buf through n writes of byte slice fub. The initial contents of buf corresponds to the string s; the result is the final contents of buf returned
syncio/buffer_test.go:73
↓ 5 callersFunctionnewHTTPRecorder
(w http.ResponseWriter, bodyLogPredicate BodyLogPredicateFunc)
srvutil/recorder.go:69
↓ 5 callersMethodresolve
()
lockmap/entry.go:14
↓ 4 callersMethodError
()
logrusbugsnag/bugsnag.go:30
↓ 4 callersMethodError
()
concurrency/throttler.go:27
next →1–100 of 660, ranked by callers