Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ functions
Functions
660 in github.com/Shopify/goose
⨍
Functions
660
◇
Types & classes
129
↓ 69 callers
Method
Get
()
statetracker/tracker.go:14
↓ 51 callers
Method
Error
()
safely/safely.go:26
↓ 45 callers
Method
Header
()
srvutil/metrics_test.go:96
↓ 40 callers
Method
String
()
syncio/buffer.go:118
↓ 36 callers
Method
Run
()
lockmap/map.go:28
↓ 35 callers
Method
ServeHTTP
(res http.ResponseWriter, req *http.Request)
srvutil/servlet_test.go:34
↓ 28 callers
Function
newBugsnagData
(rawData []interface{})
bugsnag/bugsnagdata_test.go:12
↓ 23 callers
Function
WithField
WithField attaches a key-value pair to a Context. Upon logging, the pair will be attached as metadata.
logger/loggable.go:58
↓ 21 callers
Function
check
Verify that contents of buf match the string s.
syncio/buffer_test.go:31
↓ 20 callers
Method
Run
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 callers
Function
getStatsTags
getStatsTags returns the merged tags as a list Meant to be used by the metrics when inlining the tags
statsd/taggable.go:86
↓ 18 callers
Method
Error
()
bugsnag/with_class.go:22
↓ 18 callers
Function
New
(name string)
logger/logger.go:19
↓ 18 callers
Method
Set
Set counts the number of unique elements in a group.
statsd/statsd.go:34
↓ 18 callers
Method
Signal
Signal will signal to a waiting thread, if any. Requires L to be locked.
cond/cond.go:114
↓ 16 callers
Method
Kill
(signal syscall.Signal)
shell/supervisor.go:24
↓ 16 callers
Function
NewCond
(l sync.Locker)
cond/cond.go:27
↓ 15 callers
Method
Addr
()
srvutil/server.go:24
↓ 15 callers
Method
Write
(p []byte)
syncio/buffer.go:22
↓ 14 callers
Method
Duration
The time that the StateTracker has spent being "previous" If already "desired", returns 0
statetracker/tracker.go:19
↓ 14 callers
Method
StartTimer
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 callers
Method
Wait
Wait unconditionally waits for a signal. Requires L to be locked.
cond/cond.go:37
↓ 14 callers
Function
WithTags
WithTags attaches fields to a Context. Upon recording a metric, those fields will be attached as tags.
statsd/taggable.go:65
↓ 13 callers
Method
Cmd
()
shell/supervisor.go:19
↓ 13 callers
Method
Run
Run begins the Runnable's main run loop.
safely/safely.go:53
↓ 13 callers
Method
buildData
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 callers
Function
checkData
(ctx context.Context, t *testing.T, expected logrus.Fields)
logger/loggable_test.go:208
↓ 12 callers
Method
Len
()
syncio/buffer.go:135
↓ 12 callers
Method
RegisterRouting
(r *mux.Router)
srvutil/servlet.go:19
↓ 11 callers
Function
GetLoggableValue
GetLoggableValue returns the value of the metadata currently attached to the Context.
logger/loggable.go:84
↓ 11 callers
Method
SuccessFinish
(err *error, ts ...Tags)
statsd/timer.go:38
↓ 10 callers
Function
NewBuffer
(buf []byte)
syncio/buffer.go:157
↓ 10 callers
Method
Tomb
Allows the LockMap to be started and stopped externally
lockmap/map.go:27
↓ 9 callers
Function
New
(ctx context.Context, path string, args ...string)
shell/shell.go:21
↓ 9 callers
Method
Wait
()
shell/supervisor.go:23
↓ 9 callers
Method
Wait
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 callers
Method
WriteHeader
(statusCode int)
srvutil/recorder.go:30
↓ 9 callers
Function
empty
Empty buf through repeated reads into fub. The initial contents of buf corresponds to the string s.
syncio/buffer_test.go:101
↓ 9 callers
Method
retry
(ctx context.Context, fn func() error)
resolver/retry_resolver.go:37
↓ 8 callers
Method
Broadcast
Broadcast will signal to all waiting threads, if any. Requires L to be locked.
cond/cond.go:128
↓ 8 callers
Function
FuncServlet
FuncServlet creates a Servlet from a function.
srvutil/servlet.go:29
↓ 8 callers
Method
Set
(interface{})
statetracker/tracker.go:15
↓ 8 callers
Method
Start
()
shell/supervisor.go:20
↓ 8 callers
Method
Tomb
()
genmain/genmain_test.go:65
↓ 8 callers
Function
UseServlet
UseServlet applies a middleware to a whole Servlet. Great for applying authentication layers.
srvutil/servlet.go:51
↓ 8 callers
Function
expectCount
(t *testing.T, call func() int32, expected int32)
concurrency/limiter_test.go:75
↓ 8 callers
Method
getContext
()
bugsnag/bugsnagdata_test.go:51
↓ 8 callers
Function
makeErrorArgs
(length int, err error)
resolver/retry_resolver_test.go:46
↓ 7 callers
Method
Average
()
timetracker/tracker.go:10
↓ 7 callers
Method
Bytes
()
syncio/buffer.go:129
↓ 7 callers
Method
Cause
()
bugsnag/with_class.go:73
↓ 7 callers
Method
LookupTXT
(ctx context.Context, name string)
resolver/resolver.go:22
↓ 7 callers
Method
Notify
Notify annotates bugsnag entries with metadata and then sends it to bugsnag
bugsnag/bugsnagger.go:156
↓ 7 callers
Method
Rate
()
statsd/collector.go:11
↓ 7 callers
Method
Read
(p []byte)
syncio/buffer.go:16
↓ 7 callers
Function
Run
(r Runnable)
safely/safely.go:56
↓ 7 callers
Function
SetBackend
SetBackend replaces the current backend with the given Backend.
statsd/statsd.go:42
↓ 7 callers
Method
String
(s, d, _ string)
profiler/ui.go:123
↓ 7 callers
Method
Value
(key interface{})
logger/loggable.go:22
↓ 7 callers
Method
WaitOrLock
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 callers
Method
getBugsnaggoErrorClass
()
bugsnag/bugsnagdata_test.go:18
↓ 7 callers
Function
warnIfError
(ctx context.Context, err error)
statsd/statsd.go:68
↓ 6 callers
Method
Close
()
logrussplunk/splunk.go:56
↓ 6 callers
Method
LookupAddr
(ctx context.Context, addr string)
resolver/resolver.go:23
↓ 6 callers
Method
LookupCNAME
(ctx context.Context, host string)
resolver/resolver.go:18
↓ 6 callers
Method
LookupHost
(ctx context.Context, host string)
resolver/resolver.go:15
↓ 6 callers
Method
LookupIPAddr
(ctx context.Context, host string)
resolver/resolver.go:16
↓ 6 callers
Method
LookupMX
(ctx context.Context, name string)
resolver/resolver.go:20
↓ 6 callers
Method
LookupNS
(ctx context.Context, name string)
resolver/resolver.go:21
↓ 6 callers
Method
LookupPort
(ctx context.Context, network, service string)
resolver/resolver.go:17
↓ 6 callers
Method
LookupSRV
(ctx context.Context, service, proto, name string)
resolver/resolver.go:19
↓ 6 callers
Function
NewBuilder
(ctx context.Context, path string, args ...string)
shell/shell.go:32
↓ 6 callers
Method
Prepare
()
shell/builder.go:19
↓ 6 callers
Method
RunAndGetOutput
()
shell/supervisor.go:22
↓ 6 callers
Function
WithFields
WithFields attaches fields to a Context. Upon logging, those fields will be attached as metadata.
logger/loggable.go:64
↓ 6 callers
Method
Write
(p []byte)
shell/shell_test.go:93
↓ 6 callers
Function
benchmarkCond
(b *testing.B, waiters int)
cond/cond_test.go:484
↓ 6 callers
Method
hasErrTab
()
bugsnag/bugsnagdata_test.go:27
↓ 6 callers
Function
withRetry
(t *testing.T, fn func(m *mockResolver, r Resolver))
resolver/retry_resolver_test.go:37
↓ 5 callers
Method
Cap
()
syncio/buffer.go:141
↓ 5 callers
Method
Count
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 callers
Method
Finish
(ts ...Tags)
statsd/timer.go:37
↓ 5 callers
Function
GetLoggableValues
(ctx Valuer)
logger/loggable.go:92
↓ 5 callers
Function
NewLimiter
(concurrency uint)
concurrency/limiter.go:47
↓ 5 callers
Function
NewNullBackend
NewNullBackend returns a new backend that no-ops every metric.
statsd/null_backend.go:8
↓ 5 callers
Function
NewServer
(t *tomb.Tomb, bind string, servlet Servlet)
srvutil/server.go:27
↓ 5 callers
Method
Reset
()
syncio/buffer.go:100
↓ 5 callers
Method
Tomb
Tomb returns this Runnable's tomb used for lifecycle management.
safely/safely.go:50
↓ 5 callers
Method
Waiting
Waiting returns a (racy) counter of how many Run calls are currently waiting to run.
concurrency/limiter.go:24
↓ 5 callers
Function
WithErrorClass
WithErrorClass wraps the error with an error class used to control the grouping in Bugsnag
bugsnag/with_class.go:51
↓ 5 callers
Method
Write
(data []byte)
srvutil/recorder.go:35
↓ 5 callers
Method
WriteRune
(r rune)
syncio/buffer.go:52
↓ 5 callers
Method
WriteString
(s string)
syncio/buffer.go:88
↓ 5 callers
Function
componentName
(comp Component)
genmain/genmain.go:230
↓ 5 callers
Function
extractErrorClass
(err error)
bugsnag/with_class.go:71
↓ 5 callers
Function
fillBytes
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 callers
Function
newHTTPRecorder
(w http.ResponseWriter, bodyLogPredicate BodyLogPredicateFunc)
srvutil/recorder.go:69
↓ 5 callers
Method
resolve
()
lockmap/entry.go:14
↓ 4 callers
Method
Error
()
logrusbugsnag/bugsnag.go:30
↓ 4 callers
Method
Error
()
concurrency/throttler.go:27
next →
1–100 of 660, ranked by callers