MCPcopy Create free account

hub / github.com/Shopify/goose / functions

Functions660 in github.com/Shopify/goose

↓ 4 callersFunctionHandlerServlet
HandlerServlet creates a Servlet from a Handler, which implements ServeHTTP.
srvutil/servlet.go:36
↓ 4 callersFunctionLogIfError
LogIfError makes it less verbose to defer a Close() call while handling an unlikely-but-possible error return by logging it. Example: defer LogIfErr
logger/logger.go:77
↓ 4 callersFunctionNewForwardingBackend
NewForwardingBackend creates a new Backend that sends all metrics to a ForwardHandler
statsd/forwarding_backend.go:11
↓ 4 callersFunctionPrefixServlet
PrefixServlet registers a whole Servlet under a path prefix.
srvutil/servlet.go:43
↓ 4 callersMethodReadByte
()
syncio/buffer.go:58
↓ 4 callersMethodReadRune
()
syncio/buffer.go:40
↓ 4 callersMethodRecord
(duration time.Duration)
timetracker/tracker.go:9
↓ 4 callersMethodResponseBody
()
srvutil/recorder.go:19
↓ 4 callersMethodRunAndWait
RunAndWait starts all components in this `Main`. `RunAndWait` will also listen to SIGINT and SIGTERM to do graceful shutdowns of all components it ma
genmain/genmain.go:181
↓ 4 callersMethodRunning
Running returns a (racy) counter of how many Run calls are currently executing their function.
concurrency/limiter.go:27
↓ 4 callersMethodString
()
shell/shell_test.go:87
↓ 4 callersMethodUnreadByte
()
syncio/buffer.go:70
↓ 4 callersFunctionWatchingTaggable
WatchingTaggable attaches a Taggable to a Context. When a metric is recorded, StatsTags() will be called and the tags will be appended.
statsd/taggable.go:80
↓ 4 callersMethodWriteByte
(c byte)
syncio/buffer.go:76
↓ 4 callersFunctionbuildLogger
()
logger/logger_test.go:15
↓ 4 callersMethoddeltaAndMaybePublish
(ctx context.Context, ptr *int32, delta int32, state string)
concurrency/limiter.go:102
↓ 4 callersFunctionnewHangingComponent
(hangTime time.Duration)
genmain/genmain_test.go:43
↓ 4 callersFunctionnewMap
(interval time.Duration)
lockmap/map_test.go:47
↓ 4 callersFunctionnewTestRequest
(path string)
srvutil/request_test.go:74
↓ 4 callersFunctionrunAndPerform
(t *testing.T, perform func(*genmain.Main, *testComponent))
genmain/genmain_test.go:228
↓ 3 callersFunctionCombineServlets
CombineServlets combines all Servlets into one, without other modifications. Great for splitting the dependency managements into smaller servlets.
srvutil/servlet.go:61
↓ 3 callersFunctionContextLog
(ctx Valuer, err []error, entry *logrus.Entry)
logger/logger.go:33
↓ 3 callersMethodContextWait
ContextWait waits for a signal while the context is not Done. Requires L to be locked. Returns whether it received the signal.
cond/cond.go:65
↓ 3 callersMethodDistribution
Distribution tracks the statistical distribution of a set of values across your infrastructure.
statsd/statsd.go:32
↓ 3 callersFunctionHeaders
(headers http.Header)
redact/redact.go:49
↓ 3 callersMethodIsInitial
()
statetracker/notification.go:19
↓ 3 callersMethodLogFields
()
logger/loggable.go:17
↓ 3 callersFunctionMap
(data map[string]interface{})
redact/redact.go:35
↓ 3 callersMethodMaxConcurrency
()
concurrency/limiter.go:29
↓ 3 callersFunctionNew
(initial interface{})
statetracker/tracker.go:33
↓ 3 callersFunctionNew
New creates a new `Main`
genmain/genmain.go:47
↓ 3 callersFunctionNewBufferString
(s string)
syncio/buffer.go:159
↓ 3 callersFunctionNewRequestMetricsMiddleware
NewRequestMetricsMiddleware records the time taken to serve a request, and logs request and response data. Example tags: statusClass:2xx, statusCode:2
srvutil/metrics.go:16
↓ 3 callersFunctionNewRetryResolver
(resolver Resolver, backoffs []time.Duration)
resolver/retry_resolver.go:18
↓ 3 callersMethodNext
(n int)
syncio/buffer.go:94
↓ 3 callersMethodRead
([]byte)
syncio/buffer_test.go:20
↓ 3 callersFunctionRecover
Recover recovers a panic, if any, and submits it to bugsnag through logrus (assuming that handler is registered) before terminating the program for re
safely/safely.go:33
↓ 3 callersMethodRelease
Release unlocks a key and resolved the previous Promise, if any.
lockmap/map.go:24
↓ 3 callersMethodRun
(ctx context.Context, fn func() error)
concurrency/throttler.go:20
↓ 3 callersMethodStart
()
profiler/profiler.go:16
↓ 3 callersMethodTimeoutWait
TimeoutWait waits for a signal for up to a duration. Requires L to be locked. Returns whether it received the signal.
cond/cond.go:48
↓ 3 callersMethodTruncate
(n int)
syncio/buffer.go:106
↓ 3 callersMethodUnreadRune
()
syncio/buffer.go:46
↓ 3 callersFunctionWatchingLoggable
WatchingLoggable attaches a Loggable to the Context. Upon logging, LogFields will be called and the fields will be attached as metadata.
logger/loggable.go:79
↓ 3 callersMethodWithContextCancellation
(gracefulTimeout time.Duration)
shell/builder.go:18
↓ 3 callersFunctionWithUUID
(ctx context.Context)
logger/uuid.go:13
↓ 3 callersMethodWrite
([]byte)
srvutil/metrics_test.go:100
↓ 3 callersMethodWriteHeader
(statusCode int)
srvutil/metrics_test.go:104
↓ 3 callersFunctionassertResolved
(promise Promise)
lockmap/map_test.go:53
↓ 3 callersFunctiondefaultTagsFromEnv
()
statsd/default_tags.go:13
↓ 3 callersFunctionfillString
Fill buf through n writes of string fus. The initial contents of buf corresponds to the string s; the result is the final contents of buf returned as
syncio/buffer_test.go:54
↓ 3 callersFunctiongetStatsTagsMap
getStatsTagsMap returns the merged tags as a map
statsd/taggable.go:104
↓ 3 callersMethodkillIgnoreDead
(signal syscall.Signal)
shell/supervisor.go:107
↓ 3 callersFunctionnewBugsnagger
(config *bugsnaggo.Configuration, notifier notifier)
bugsnag/bugsnagger.go:43
↓ 2 callersMethodAutoRecover
AutoRecover when deferred, records a panic to Bugsnag and recovers.
bugsnag/bugsnagger.go:178
↓ 2 callersFunctionBuildContext
(r *http.Request)
srvutil/request.go:69
↓ 2 callersMethodCount
Count tracks how many times something happened per second.
statsd/statsd.go:28
↓ 2 callersMethodEnd
()
profiler/profiler.go:17
↓ 2 callersFunctionEnvVarHeaderMiddleware
EnvVarHeaderMiddleware will expose environment variables as HTTP response headers. It can be used with github.com/gorilla/mux:Router.Use or wrapping a
srvutil/env_var_middleware.go:10
↓ 2 callersMethodError
()
logger/logger_test.go:41
↓ 2 callersMethodError
()
genmain/genmain.go:59
↓ 2 callersFunctionEstimatedWaitTime
(limiter Limiter, average time.Duration)
concurrency/wait_time.go:5
↓ 2 callersMethodGauge
Gauge measures the value of a metric at a particular time.
statsd/statsd.go:26
↓ 2 callersMethodGrow
(n int)
syncio/buffer.go:112
↓ 2 callersMethodHistogram
Histogram tracks the statistical distribution of a set of values on each host.
statsd/statsd.go:30
↓ 2 callersMethodInt63
()
random/locked.go:23
↓ 2 callersFunctionIsSensitive
(key string)
redact/redact.go:26
↓ 2 callersFunctionNew
(sweepInterval time.Duration, tomb *tomb.Tomb)
lockmap/map.go:31
↓ 2 callersFunctionNewBugsnagHook
NewBugsnagHook initializes a logrus hook which sends exceptions to an exception-tracking service compatible with the Bugsnag API. Before using this ho
logrusbugsnag/bugsnag.go:43
↓ 2 callersFunctionNewDatadogBackend
NewDatadogBackend instantiates a new datadog/statsd connection. When running in containers at shopify, the endpoint should generally be "localhost:812
statsd/datadog_backend.go:18
↓ 2 callersFunctionNewDummy
NewDummy returns a rand.Rand seeded with 0.
random/dummy.go:6
↓ 2 callersFunctionNewExponentialMovingAverageTracker
(window uint)
timetracker/ema_tracker.go:10
↓ 2 callersFunctionNewLimiterWithSampledGauge
NewLimiterWithSampledGauge creates a Limiter that will publish the a gauge every <sampling> Run
concurrency/limiter.go:64
↓ 2 callersFunctionNewLocked
NewLocked returns a rand.Rand with a random source protected by a mutex. To be used for concurrent access.
random/locked.go:9
↓ 2 callersFunctionNewLockedSource
NewLockedSource wraps the Source with a mutex. To be used for concurrent access.
random/locked.go:14
↓ 2 callersFunctionNewLogBackend
NewLogBackend creates a new Backend that emits statsd metrics to the logger. namespace is a global namespace to apply to every metric emitted. tags i
statsd/log_backend.go:14
↓ 2 callersFunctionNewMockLimiter
(stubRun bool)
concurrency/limiter_mock.go:11
↓ 2 callersFunctionNewMockResolver
()
resolver/resolver_mock.go:16
↓ 2 callersFunctionNewNetResolver
(resolver *net.Resolver)
resolver/net_resolver.go:7
↓ 2 callersFunctionNewServerFromFactory
(t *tomb.Tomb, servlet Servlet, factory ServerFactory)
srvutil/server.go:38
↓ 2 callersFunctionNewShuffleResolver
(lookup Resolver)
resolver/shuffle_resolver.go:16
↓ 2 callersFunctionNewSource
NewSource returns a rand.Source seeded with the current time with nanoseconds precision.
random/random.go:14
↓ 2 callersMethodQuery
(sql string)
srvutil/servlet_test.go:18
↓ 2 callersMethodReadBytes
(delim byte)
syncio/buffer.go:64
↓ 2 callersMethodReadFrom
(r io.Reader)
syncio/buffer.go:28
↓ 2 callersMethodReadString
(delim byte)
syncio/buffer.go:82
↓ 2 callersFunctionRealIPMiddleware
()
srvutil/real_ip.go:9
↓ 2 callersFunctionSecurityHeaderMiddleware
SecurityHeaderMiddleware set default security headers.
srvutil/security.go:59
↓ 2 callersMethodSetShutdownDeadline
(d time.Duration)
genmain/genmain.go:172
↓ 2 callersMethodStatsTags
()
statsd/taggable.go:20
↓ 2 callersMethodStatusCode
()
srvutil/recorder.go:18
↓ 2 callersMethodTiming
Timing sends timing information, it is an alias for TimeInMilliseconds
statsd/statsd.go:36
↓ 2 callersMethodTombWait
TombWait waits for a signal while the tomb is not dead. Requires L to be locked. Returns whether it received the signal.
cond/cond.go:58
↓ 2 callersMethodWait
(ctx context.Context, desired interface{})
statetracker/tracker.go:20
↓ 2 callersMethodWithEnv
(env Env)
shell/builder.go:15
↓ 2 callersFunctionWithLoggable
WithLoggable attaches a Loggable's fields to the Context. Upon logging, those fields will be attached as metadata.
logger/loggable.go:73
↓ 2 callersFunctionWithTag
WithTag attaches a key-value pair to a Context. Upon recording a metric, the pair will be attached as a tag.
statsd/taggable.go:59
↓ 2 callersMethodWriteTo
(w io.Writer)
syncio/buffer.go:34
↓ 2 callersFunctionassertNotResolved
(promise Promise)
lockmap/map_test.go:61
↓ 2 callersFunctioncreateFile
(name string)
profiler/profiler.go:111
← previousnext →101–200 of 660, ranked by callers