SYMBOL INDEX (1706 symbols across 228 files) FILE: auth/basic/middleware.go type AuthError (line 18) | type AuthError struct method StatusCode (line 23) | func (AuthError) StatusCode() int { method Error (line 28) | func (AuthError) Error() string { method Headers (line 33) | func (e AuthError) Headers() http.Header { function parseBasicAuth (line 43) | func parseBasicAuth(auth string) (username, password []byte, ok bool) { function toHashSlice (line 61) | func toHashSlice(s []byte) []byte { function AuthMiddleware (line 67) | func AuthMiddleware(requiredUser, requiredPassword, realm string) endpoi... FILE: auth/basic/middleware_test.go function TestWithBasicAuth (line 12) | func TestWithBasicAuth(t *testing.T) { function makeAuthString (line 45) | func makeAuthString(user string, password string) string { function passedValidation (line 50) | func passedValidation(ctx context.Context, request interface{}) (respons... FILE: auth/casbin/middleware.go type contextKey (line 11) | type contextKey constant CasbinModelContextKey (line 17) | CasbinModelContextKey contextKey = "CasbinModel" constant CasbinPolicyContextKey (line 22) | CasbinPolicyContextKey contextKey = "CasbinPolicy" constant CasbinEnforcerContextKey (line 26) | CasbinEnforcerContextKey contextKey = "CasbinEnforcer" function NewEnforcer (line 47) | func NewEnforcer( FILE: auth/casbin/middleware_test.go function TestStructBaseContext (line 12) | func TestStructBaseContext(t *testing.T) { function TestFileBaseContext (line 45) | func TestFileBaseContext(t *testing.T) { FILE: auth/jwt/middleware.go type contextKey (line 11) | type contextKey constant JWTContextKey (line 15) | JWTContextKey contextKey = "JWTToken" constant JWTTokenContextKey (line 20) | JWTTokenContextKey = JWTContextKey constant JWTClaimsContextKey (line 24) | JWTClaimsContextKey contextKey = "JWTClaims" function NewSigner (line 54) | func NewSigner(kid string, key []byte, method jwt.SigningMethod, claims ... type ClaimsFactory (line 74) | type ClaimsFactory function MapClaimsFactory (line 78) | func MapClaimsFactory() jwt.Claims { function StandardClaimsFactory (line 84) | func StandardClaimsFactory() jwt.Claims { function NewParser (line 92) | func NewParser(keyFunc jwt.Keyfunc, method jwt.SigningMethod, newClaims ... FILE: auth/jwt/middleware_test.go type customClaims (line 15) | type customClaims struct method VerifyMyProperty (line 20) | func (c customClaims) VerifyMyProperty(p string) bool { function signingValidator (line 41) | func signingValidator(t *testing.T, signer endpoint.Endpoint, expectedKe... function TestNewSigner (line 57) | func TestNewSigner(t *testing.T) { function TestJWTParser (line 70) | func TestJWTParser(t *testing.T) { function TestIssue562 (line 204) | func TestIssue562(t *testing.T) { FILE: auth/jwt/transport.go constant bearer (line 16) | bearer string = "bearer" constant bearerFormat (line 17) | bearerFormat string = "Bearer %s" function HTTPToContext (line 22) | func HTTPToContext() http.RequestFunc { function ContextToHTTP (line 35) | func ContextToHTTP() http.RequestFunc { function GRPCToContext (line 47) | func GRPCToContext() grpc.ServerRequestFunc { function ContextToGRPC (line 66) | func ContextToGRPC() grpc.ClientRequestFunc { function extractTokenFromAuthHeader (line 78) | func extractTokenFromAuthHeader(val string) (token string, ok bool) { function generateAuthHeaderFromToken (line 87) | func generateAuthHeaderFromToken(token string) string { FILE: auth/jwt/transport_test.go function TestHTTPToContext (line 12) | func TestHTTPToContext(t *testing.T) { function TestContextToHTTP (line 41) | func TestContextToHTTP(t *testing.T) { function TestGRPCToContext (line 67) | func TestGRPCToContext(t *testing.T) { function TestContextToGRPC (line 99) | func TestContextToGRPC(t *testing.T) { FILE: circuitbreaker/gobreaker.go function Gobreaker (line 16) | func Gobreaker(cb *gobreaker.CircuitBreaker) endpoint.Middleware { FILE: circuitbreaker/gobreaker_test.go function TestGobreaker (line 11) | func TestGobreaker(t *testing.T) { FILE: circuitbreaker/handy_breaker.go function HandyBreaker (line 19) | func HandyBreaker(cb breaker.Breaker) endpoint.Middleware { FILE: circuitbreaker/handy_breaker_test.go function TestHandyBreaker (line 11) | func TestHandyBreaker(t *testing.T) { FILE: circuitbreaker/hystrix.go function Hystrix (line 18) | func Hystrix(commandName string) endpoint.Middleware { FILE: circuitbreaker/hystrix_test.go function TestHystrix (line 14) | func TestHystrix(t *testing.T) { FILE: circuitbreaker/util_test.go function testFailingEndpoint (line 15) | func testFailingEndpoint( type mock (line 67) | type mock struct method endpoint (line 72) | func (m *mock) endpoint(context.Context, interface{}) (interface{}, er... FILE: endpoint/endpoint.go type Endpoint (line 9) | type Endpoint function Nop (line 13) | func Nop(context.Context, interface{}) (interface{}, error) { return str... type Middleware (line 16) | type Middleware function Chain (line 21) | func Chain(outer Middleware, others ...Middleware) Middleware { type Failer (line 38) | type Failer interface FILE: endpoint/endpoint_example_test.go function ExampleChain (line 10) | func ExampleChain() { function annotate (line 36) | func annotate(s string) endpoint.Middleware { function myEndpoint (line 46) | func myEndpoint(context.Context, interface{}) (interface{}, error) { FILE: log/deprecated_levels/levels.go type Levels (line 12) | type Levels struct method With (line 56) | func (l Levels) With(keyvals ...interface{}) Levels { method Debug (line 69) | func (l Levels) Debug() log.Logger { method Info (line 74) | func (l Levels) Info() log.Logger { method Warn (line 79) | func (l Levels) Warn() log.Logger { method Error (line 84) | func (l Levels) Error() log.Logger { method Crit (line 89) | func (l Levels) Crit() log.Logger { function New (line 38) | func New(logger log.Logger, options ...Option) Levels { type Option (line 94) | type Option function Key (line 98) | func Key(key string) Option { function DebugValue (line 104) | func DebugValue(value string) Option { function InfoValue (line 110) | func InfoValue(value string) Option { function WarnValue (line 116) | func WarnValue(value string) Option { function ErrorValue (line 122) | func ErrorValue(value string) Option { function CritValue (line 128) | func CritValue(value string) Option { FILE: log/deprecated_levels/levels_test.go function TestDefaultLevels (line 12) | func TestDefaultLevels(t *testing.T) { function TestModifiedLevels (line 40) | func TestModifiedLevels(t *testing.T) { function ExampleLevels (line 57) | func ExampleLevels() { FILE: log/example_test.go function Example_basic (line 12) | func Example_basic() { function Example_contextual (line 32) | func Example_contextual() { function Example_valuer (line 62) | func Example_valuer() { function Example_debugInfo (line 81) | func Example_debugInfo() { function Example_syncWriter (line 106) | func Example_syncWriter() { FILE: log/json_logger.go function NewJSONLogger (line 13) | func NewJSONLogger(w io.Writer) Logger { FILE: log/level/example_test.go function Example_basic (line 11) | func Example_basic() { function Example_filtered (line 25) | func Example_filtered() { FILE: log/level/level.go function Error (line 9) | func Error(logger log.Logger) log.Logger { function Warn (line 14) | func Warn(logger log.Logger) log.Logger { function Info (line 19) | func Info(logger log.Logger) log.Logger { function Debug (line 24) | func Debug(logger log.Logger) log.Logger { function NewFilter (line 33) | func NewFilter(next log.Logger, options ...Option) log.Logger { function AllowAll (line 41) | func AllowAll() Option { function AllowDebug (line 46) | func AllowDebug() Option { function AllowInfo (line 51) | func AllowInfo() Option { function AllowWarn (line 56) | func AllowWarn() Option { function AllowError (line 61) | func AllowError() Option { function AllowNone (line 66) | func AllowNone() Option { function ErrNotAllowed (line 74) | func ErrNotAllowed(err error) Option { function SquelchNoLevel (line 82) | func SquelchNoLevel(squelch bool) Option { function ErrNoLevel (line 89) | func ErrNoLevel(err error) Option { function NewInjector (line 96) | func NewInjector(next log.Logger, lvl Value) log.Logger { function Key (line 108) | func Key() interface{} { return level.Key() } function ErrorValue (line 111) | func ErrorValue() Value { return level.ErrorValue() } function WarnValue (line 114) | func WarnValue() Value { return level.WarnValue() } function InfoValue (line 117) | func InfoValue() Value { return level.InfoValue() } function DebugValue (line 120) | func DebugValue() Value { return level.DebugValue() } FILE: log/log.go function With (line 24) | func With(logger Logger, keyvals ...interface{}) Logger { function WithPrefix (line 34) | func WithPrefix(logger Logger, keyvals ...interface{}) Logger { function WithSuffix (line 44) | func WithSuffix(logger Logger, keyvals ...interface{}) Logger { FILE: log/logfmt_logger.go function NewLogfmtLogger (line 13) | func NewLogfmtLogger(w io.Writer) Logger { FILE: log/logrus/logrus_logger.go type Logger (line 13) | type Logger struct method Log (line 43) | func (l Logger) Log(keyvals ...interface{}) error { type Option (line 18) | type Option function NewLogger (line 23) | func NewLogger(logger logrus.FieldLogger, options ...Option) log.Logger { function WithLevel (line 37) | func WithLevel(level logrus.Level) Option { FILE: log/logrus/logrus_logger_test.go function TestLogrusLogger (line 14) | func TestLogrusLogger(t *testing.T) { type mymap (line 54) | type mymap method String (line 56) | func (m mymap) String() string { return "special_behavior" } function TestWithLevel (line 58) | func TestWithLevel(t *testing.T) { FILE: log/nop_logger.go function NewNopLogger (line 6) | func NewNopLogger() Logger { FILE: log/stdlib.go function TimestampKey (line 26) | func TimestampKey(key string) StdlibAdapterOption { function FileKey (line 31) | func FileKey(key string) StdlibAdapterOption { function MessageKey (line 36) | func MessageKey(key string) StdlibAdapterOption { function Prefix (line 46) | func Prefix(prefix string, joinPrefixToMsg bool) StdlibAdapterOption { function NewStdlibAdapter (line 52) | func NewStdlibAdapter(logger Logger, options ...StdlibAdapterOption) io.... FILE: log/sync.go function NewSyncWriter (line 27) | func NewSyncWriter(w io.Writer) io.Writer { function NewSyncLogger (line 35) | func NewSyncLogger(logger Logger) Logger { FILE: log/syslog/example_test.go function ExampleNewSyslogLogger_defaultPrioritySelector (line 17) | func ExampleNewSyslogLogger_defaultPrioritySelector() { FILE: log/syslog/syslog.go function NewSyslogLogger (line 20) | func NewSyslogLogger(w SyslogWriter, newLogger func(io.Writer) log.Logge... function PrioritySelectorOption (line 32) | func PrioritySelectorOption(selector PrioritySelector) Option { FILE: log/term/colorlogger.go constant Default (line 15) | Default = term.Default constant Black (line 17) | Black = term.Black constant DarkRed (line 18) | DarkRed = term.DarkRed constant DarkGreen (line 19) | DarkGreen = term.DarkGreen constant Brown (line 20) | Brown = term.Brown constant DarkBlue (line 21) | DarkBlue = term.DarkBlue constant DarkMagenta (line 22) | DarkMagenta = term.DarkMagenta constant DarkCyan (line 23) | DarkCyan = term.DarkCyan constant Gray (line 24) | Gray = term.Gray constant DarkGray (line 26) | DarkGray = term.DarkGray constant Red (line 27) | Red = term.Red constant Green (line 28) | Green = term.Green constant Yellow (line 29) | Yellow = term.Yellow constant Blue (line 30) | Blue = term.Blue constant Magenta (line 31) | Magenta = term.Magenta constant Cyan (line 32) | Cyan = term.Cyan constant White (line 33) | White = term.White function NewColorLogger (line 42) | func NewColorLogger(w io.Writer, newLogger func(io.Writer) log.Logger, c... FILE: log/term/colorwriter.go function NewColorWriter (line 12) | func NewColorWriter(w io.Writer) io.Writer { FILE: log/term/example_test.go function ExampleNewLogger_redErrors (line 11) | func ExampleNewLogger_redErrors() { function ExampleNewLogger_levelColors (line 28) | func ExampleNewLogger_levelColors() { FILE: log/term/term.go function NewLogger (line 16) | func NewLogger(w io.Writer, newLogger func(io.Writer) log.Logger, color ... function IsTerminal (line 21) | func IsTerminal(w io.Writer) bool { FILE: log/value.go function Timestamp (line 19) | func Timestamp(t func() time.Time) Valuer { function TimestampFormat (line 30) | func TimestampFormat(t func() time.Time, layout string) Valuer { function Caller (line 36) | func Caller(depth int) Valuer { FILE: log/zap/zap_sugar_logger.go type zapSugarLogger (line 9) | type zapSugarLogger method Log (line 11) | func (l zapSugarLogger) Log(kv ...interface{}) error { function NewZapSugarLogger (line 18) | func NewZapSugarLogger(logger *zap.Logger, level zapcore.Level) log.Logg... FILE: log/zap/zap_sugar_logger_test.go function TestZapSugarLogger (line 12) | func TestZapSugarLogger(t *testing.T) { type tbWriter (line 77) | type tbWriter struct method Write (line 82) | func (w *tbWriter) Write(b []byte) (n int, err error) { FILE: metrics/cloudwatch/cloudwatch.go constant maxConcurrentRequests (line 22) | maxConcurrentRequests = 20 constant maxValuesInABatch (line 23) | maxValuesInABatch = 150 type CloudWatch (line 31) | type CloudWatch struct method NewCounter (line 112) | func (cw *CloudWatch) NewCounter(name string) metrics.Counter { method NewGauge (line 120) | func (cw *CloudWatch) NewGauge(name string) metrics.Gauge { method NewHistogram (line 129) | func (cw *CloudWatch) NewHistogram(name string) metrics.Histogram { method WriteLoop (line 140) | func (cw *CloudWatch) WriteLoop(ctx context.Context, c <-chan time.Tim... method Send (line 155) | func (cw *CloudWatch) Send() error { type Option (line 45) | type Option function WithLogger (line 49) | func WithLogger(logger log.Logger) Option { function WithPercentiles (line 59) | func WithPercentiles(percentiles ...float64) Option { function WithConcurrentRequests (line 75) | func WithConcurrentRequests(n int) Option { function New (line 88) | func New(namespace string, svc cloudwatchiface.CloudWatchAPI, options ..... function sum (line 262) | func sum(a []float64) float64 { function min (line 270) | func min(a, b int) int { type observeFunc (line 277) | type observeFunc type Counter (line 281) | type Counter struct method With (line 288) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 297) | func (c *Counter) Add(delta float64) { type Gauge (line 303) | type Gauge struct method With (line 311) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 321) | func (g *Gauge) Set(value float64) { method Add (line 326) | func (g *Gauge) Add(delta float64) { type Histogram (line 332) | type Histogram struct method With (line 339) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 348) | func (h *Histogram) Observe(value float64) { function makeDimensions (line 352) | func makeDimensions(labelValues ...string) []*cloudwatch.Dimension { FILE: metrics/cloudwatch/cloudwatch_test.go constant metricNameToGenerateError (line 18) | metricNameToGenerateError = "metric_name_used_to_throw_an_error" type mockCloudWatch (line 22) | type mockCloudWatch struct method PutMetricData (line 36) | func (mcw *mockCloudWatch) PutMetricData(input *cloudwatch.PutMetricDa... method testDimensions (line 56) | func (mcw *mockCloudWatch) testDimensions(name string, labelValues ...... function newMockCloudWatch (line 29) | func newMockCloudWatch() *mockCloudWatch { function TestCounter (line 86) | func TestCounter(t *testing.T) { function TestCounterLowSendConcurrency (line 114) | func TestCounterLowSendConcurrency(t *testing.T) { function TestGauge (line 156) | func TestGauge(t *testing.T) { function TestHistogram (line 181) | func TestHistogram(t *testing.T) { function TestErrorLog (line 291) | func TestErrorLog(t *testing.T) { FILE: metrics/cloudwatch2/cloudwatch2.go constant maxConcurrentRequests (line 23) | maxConcurrentRequests = 20 type CloudWatchAPI (line 27) | type CloudWatchAPI interface type CloudWatch (line 36) | type CloudWatch struct method NewCounter (line 94) | func (cw *CloudWatch) NewCounter(name string) metrics.Counter { method NewGauge (line 104) | func (cw *CloudWatch) NewGauge(name string) metrics.Gauge { method NewHistogram (line 111) | func (cw *CloudWatch) NewHistogram(name string) metrics.Histogram { method WriteLoop (line 119) | func (cw *CloudWatch) WriteLoop(ctx context.Context, c <-chan time.Tim... method Send (line 134) | func (cw *CloudWatch) Send() error { type Option (line 47) | type Option function WithLogger (line 51) | func WithLogger(logger log.Logger) Option { function WithConcurrentRequests (line 61) | func WithConcurrentRequests(n int) Option { function New (line 74) | func New(namespace string, svc CloudWatchAPI, options ...Option) *CloudW... function stats (line 191) | func stats(a []float64) *types.StatisticSet { function makeDimensions (line 218) | func makeDimensions(labelValues ...string) []types.Dimension { type observeFunc (line 229) | type observeFunc type Counter (line 233) | type Counter struct method With (line 240) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 249) | func (c *Counter) Add(delta float64) { FILE: metrics/cloudwatch2/cloudwatch2_test.go function TestStats (line 12) | func TestStats(t *testing.T) { type mockCloudWatch (line 74) | type mockCloudWatch struct method PutMetricData (line 80) | func (mcw *mockCloudWatch) PutMetricData(ctx context.Context, params *... function TestSend (line 87) | func TestSend(t *testing.T) { FILE: metrics/discard/discard.go type counter (line 6) | type counter struct method With (line 12) | func (c counter) With(labelValues ...string) metrics.Counter { return c } method Add (line 15) | func (c counter) Add(delta float64) {} function NewCounter (line 9) | func NewCounter() metrics.Counter { return counter{} } type gauge (line 17) | type gauge struct method With (line 23) | func (g gauge) With(labelValues ...string) metrics.Gauge { return g } method Set (line 26) | func (g gauge) Set(value float64) {} method Add (line 29) | func (g gauge) Add(delta float64) {} function NewGauge (line 20) | func NewGauge() metrics.Gauge { return gauge{} } type histogram (line 31) | type histogram struct method With (line 37) | func (h histogram) With(labelValues ...string) metrics.Histogram { ret... method Observe (line 40) | func (h histogram) Observe(value float64) {} function NewHistogram (line 34) | func NewHistogram() metrics.Histogram { return histogram{} } FILE: metrics/dogstatsd/dogstatsd.go type Dogstatsd (line 41) | type Dogstatsd struct method NewCounter (line 73) | func (d *Dogstatsd) NewCounter(name string, sampleRate float64) *Count... method NewGauge (line 82) | func (d *Dogstatsd) NewGauge(name string) *Gauge { method NewTiming (line 95) | func (d *Dogstatsd) NewTiming(name string, sampleRate float64) *Timing { method NewHistogram (line 105) | func (d *Dogstatsd) NewHistogram(name string, sampleRate float64) *His... method WriteLoop (line 117) | func (d *Dogstatsd) WriteLoop(ctx context.Context, c <-chan time.Time,... method SendLoop (line 135) | func (d *Dogstatsd) SendLoop(ctx context.Context, c <-chan time.Time, ... method WriteTo (line 143) | func (d *Dogstatsd) WriteTo(w io.Writer) (count int64, err error) { method tagValues (line 220) | func (d *Dogstatsd) tagValues(labelValues []string) string { function New (line 56) | func New(prefix string, logger log.Logger, lvs ...string) *Dogstatsd { function sum (line 204) | func sum(a []float64) float64 { function sampling (line 212) | func sampling(r float64) string { type observeFunc (line 237) | type observeFunc function sampleObservations (line 240) | func sampleObservations(obs observeFunc, sampleRate float64) observeFunc { type Counter (line 254) | type Counter struct method With (line 261) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 270) | func (c *Counter) Add(delta float64) { type Gauge (line 276) | type Gauge struct method With (line 283) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 293) | func (g *Gauge) Set(value float64) { method Add (line 299) | func (g *Gauge) Add(delta float64) { method touch (line 398) | func (g *Gauge) touch() { method read (line 402) | func (g *Gauge) read() (float64, bool) { type Timing (line 307) | type Timing struct method With (line 314) | func (t *Timing) With(labelValues ...string) metrics.Histogram { method Observe (line 323) | func (t *Timing) Observe(value float64) { type Histogram (line 329) | type Histogram struct method With (line 336) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 345) | func (h *Histogram) Observe(value float64) { type pair (line 349) | type pair struct type gaugeNode (line 351) | type gaugeNode struct method addGauge (line 357) | func (n *gaugeNode) addGauge(g *Gauge, lvs lv.LabelValues) *Gauge { method walk (line 381) | func (n *gaugeNode) walk(fn func(string, lv.LabelValues, float64) bool... FILE: metrics/dogstatsd/dogstatsd_test.go function TestCounter (line 10) | func TestCounter(t *testing.T) { function TestCounterSampled (line 22) | func TestCounterSampled(t *testing.T) { function TestGauge (line 29) | func TestGauge(t *testing.T) { function TestHistogram (line 44) | func TestHistogram(t *testing.T) { function TestHistogramSampled (line 56) | func TestHistogramSampled(t *testing.T) { function TestTiming (line 68) | func TestTiming(t *testing.T) { function TestTimingSampled (line 80) | func TestTimingSampled(t *testing.T) { FILE: metrics/expvar/expvar.go type Counter (line 15) | type Counter struct method With (line 28) | func (c *Counter) With(labelValues ...string) metrics.Counter { return... method Add (line 31) | func (c *Counter) Add(delta float64) { c.f.Add(delta) } function NewCounter (line 21) | func NewCounter(name string) *Counter { type Gauge (line 35) | type Gauge struct method With (line 48) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { return g } method Set (line 51) | func (g *Gauge) Set(value float64) { g.f.Set(value) } method Add (line 54) | func (g *Gauge) Add(delta float64) { g.f.Add(delta) } function NewGauge (line 41) | func NewGauge(name string) *Gauge { type Histogram (line 60) | type Histogram struct method With (line 83) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { re... method Observe (line 86) | func (h *Histogram) Observe(value float64) { function NewHistogram (line 72) | func NewHistogram(name string, buckets int) *Histogram { FILE: metrics/expvar/expvar_test.go function TestCounter (line 10) | func TestCounter(t *testing.T) { function TestGauge (line 18) | func TestGauge(t *testing.T) { function TestHistogram (line 26) | func TestHistogram(t *testing.T) { FILE: metrics/generic/generic.go type Counter (line 20) | type Counter struct method With (line 34) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 43) | func (c *Counter) Add(delta float64) { method Value (line 57) | func (c *Counter) Value() float64 { method ValueReset (line 64) | func (c *Counter) ValueReset() float64 { method LabelValues (line 78) | func (c *Counter) LabelValues() []string { function NewCounter (line 27) | func NewCounter(name string) *Counter { type Gauge (line 83) | type Gauge struct method With (line 97) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 106) | func (g *Gauge) Set(value float64) { method Add (line 111) | func (g *Gauge) Add(delta float64) { method Value (line 125) | func (g *Gauge) Value() float64 { method LabelValues (line 130) | func (g *Gauge) LabelValues() []string { function NewGauge (line 90) | func NewGauge(name string) *Gauge { type Histogram (line 137) | type Histogram struct method With (line 153) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 162) | func (h *Histogram) Observe(value float64) { method Quantile (line 169) | func (h *Histogram) Quantile(q float64) float64 { method LabelValues (line 176) | func (h *Histogram) LabelValues() []string { method Print (line 182) | func (h *Histogram) Print(w io.Writer) { function NewHistogram (line 145) | func NewHistogram(name string, buckets int) *Histogram { type safeHistogram (line 189) | type safeHistogram struct type Bucket (line 195) | type Bucket struct type Quantile (line 200) | type Quantile struct type SimpleHistogram (line 207) | type SimpleHistogram struct method With (line 220) | func (h *SimpleHistogram) With(labelValues ...string) metrics.Histogram { method Observe (line 229) | func (h *SimpleHistogram) Observe(value float64) { method ApproximateMovingAverage (line 238) | func (h *SimpleHistogram) ApproximateMovingAverage() float64 { method LabelValues (line 245) | func (h *SimpleHistogram) LabelValues() []string { function NewSimpleHistogram (line 215) | func NewSimpleHistogram() *SimpleHistogram { FILE: metrics/generic/generic_test.go function TestCounter (line 23) | func TestCounter(t *testing.T) { function TestValueReset (line 35) | func TestValueReset(t *testing.T) { function TestGauge (line 48) | func TestGauge(t *testing.T) { function TestHistogram (line 60) | func TestHistogram(t *testing.T) { function TestIssue424 (line 74) | func TestIssue424(t *testing.T) { function TestSimpleHistogram (line 95) | func TestSimpleHistogram(t *testing.T) { function TestAtomicAlignment (line 121) | func TestAtomicAlignment(t *testing.T) { function checkAtomicAlignment (line 153) | func checkAtomicAlignment(t *testing.T, sizes types.Sizes, obj types.Obj... FILE: metrics/graphite/graphite.go type Graphite (line 33) | type Graphite struct method NewCounter (line 57) | func (g *Graphite) NewCounter(name string) *Counter { method NewGauge (line 67) | func (g *Graphite) NewGauge(name string) *Gauge { method NewHistogram (line 78) | func (g *Graphite) NewHistogram(name string, buckets int) *Histogram { method WriteLoop (line 90) | func (g *Graphite) WriteLoop(ctx context.Context, c <-chan time.Time, ... method SendLoop (line 108) | func (g *Graphite) SendLoop(ctx context.Context, c <-chan time.Time, n... method WriteTo (line 117) | func (g *Graphite) WriteTo(w io.Writer) (count int64, err error) { function New (line 45) | func New(prefix string, logger log.Logger) *Graphite { type Counter (line 160) | type Counter struct method With (line 170) | func (c *Counter) With(...string) metrics.Counter { return c } method Add (line 173) | func (c *Counter) Add(delta float64) { c.c.Add(delta) } function NewCounter (line 165) | func NewCounter(name string) *Counter { type Gauge (line 176) | type Gauge struct method With (line 186) | func (g *Gauge) With(...string) metrics.Gauge { return g } method Set (line 189) | func (g *Gauge) Set(value float64) { g.g.Set(value) } method Add (line 192) | func (g *Gauge) Add(delta float64) { g.g.Add(delta) } function NewGauge (line 181) | func NewGauge(name string) *Gauge { type Histogram (line 196) | type Histogram struct method With (line 206) | func (h *Histogram) With(...string) metrics.Histogram { return h } method Observe (line 209) | func (h *Histogram) Observe(value float64) { h.h.Observe(value) } function NewHistogram (line 201) | func NewHistogram(name string, buckets int) *Histogram { FILE: metrics/graphite/graphite_test.go function TestCounter (line 13) | func TestCounter(t *testing.T) { function TestGauge (line 25) | func TestGauge(t *testing.T) { function TestHistogram (line 37) | func TestHistogram(t *testing.T) { FILE: metrics/influx/example_test.go function ExampleCounter (line 12) | func ExampleCounter() { function ExampleGauge (line 39) | func ExampleGauge() { function ExampleHistogram (line 71) | func ExampleHistogram() { function extractAndPrintMessage (line 98) | func extractAndPrintMessage(expected []string, msg string) error { FILE: metrics/influx/influx.go type Influx (line 34) | type Influx struct method NewCounter (line 58) | func (in *Influx) NewCounter(name string) *Counter { method NewGauge (line 66) | func (in *Influx) NewGauge(name string) *Gauge { method NewHistogram (line 75) | func (in *Influx) NewHistogram(name string) *Histogram { method WriteLoop (line 92) | func (in *Influx) WriteLoop(ctx context.Context, c <-chan time.Time, w... method WriteTo (line 109) | func (in *Influx) WriteTo(w BatchPointsWriter) (err error) { function New (line 46) | func New(tags map[string]string, conf influxdb.BatchPointsConfig, logger... type BatchPointsWriter (line 84) | type BatchPointsWriter interface function mergeTags (line 174) | func mergeTags(tags map[string]string, labelValues []string) map[string]... function sum (line 188) | func sum(a []float64) float64 { function last (line 196) | func last(a []float64) float64 { type observeFunc (line 200) | type observeFunc type Counter (line 204) | type Counter struct method With (line 211) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 220) | func (c *Counter) Add(delta float64) { type Gauge (line 226) | type Gauge struct method With (line 234) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 244) | func (g *Gauge) Set(value float64) { method Add (line 249) | func (g *Gauge) Add(delta float64) { type Histogram (line 255) | type Histogram struct method With (line 262) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 271) | func (h *Histogram) Observe(value float64) { FILE: metrics/influx/influx_test.go function TestCounter (line 17) | func TestCounter(t *testing.T) { function TestGauge (line 33) | func TestGauge(t *testing.T) { function TestHistogram (line 49) | func TestHistogram(t *testing.T) { function TestHistogramLabels (line 71) | func TestHistogramLabels(t *testing.T) { function TestIssue404 (line 85) | func TestIssue404(t *testing.T) { type bufWriter (line 116) | type bufWriter struct method Write (line 120) | func (w *bufWriter) Write(bp influxdb.BatchPoints) error { FILE: metrics/influxstatsd/influxstatsd.go type Influxstatsd (line 40) | type Influxstatsd struct method NewCounter (line 72) | func (d *Influxstatsd) NewCounter(name string, sampleRate float64) *Co... method NewGauge (line 81) | func (d *Influxstatsd) NewGauge(name string) *Gauge { method NewTiming (line 94) | func (d *Influxstatsd) NewTiming(name string, sampleRate float64) *Tim... method NewHistogram (line 104) | func (d *Influxstatsd) NewHistogram(name string, sampleRate float64) *... method WriteLoop (line 116) | func (d *Influxstatsd) WriteLoop(ctx context.Context, c <-chan time.Ti... method SendLoop (line 134) | func (d *Influxstatsd) SendLoop(ctx context.Context, c <-chan time.Tim... method WriteTo (line 142) | func (d *Influxstatsd) WriteTo(w io.Writer) (count int64, err error) { method tagValues (line 219) | func (d *Influxstatsd) tagValues(labelValues []string) string { function New (line 55) | func New(prefix string, logger log.Logger, lvs ...string) *Influxstatsd { function sum (line 203) | func sum(a []float64) float64 { function sampling (line 211) | func sampling(r float64) string { type observeFunc (line 236) | type observeFunc type Counter (line 240) | type Counter struct method With (line 247) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 256) | func (c *Counter) Add(delta float64) { type Gauge (line 262) | type Gauge struct method With (line 269) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 279) | func (g *Gauge) Set(value float64) { method Add (line 285) | func (g *Gauge) Add(delta float64) { method touch (line 384) | func (g *Gauge) touch() { method read (line 388) | func (g *Gauge) read() (float64, bool) { type Timing (line 293) | type Timing struct method With (line 300) | func (t *Timing) With(labelValues ...string) metrics.Histogram { method Observe (line 309) | func (t *Timing) Observe(value float64) { type Histogram (line 315) | type Histogram struct method With (line 322) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 331) | func (h *Histogram) Observe(value float64) { type pair (line 335) | type pair struct type gaugeNode (line 337) | type gaugeNode struct method addGauge (line 343) | func (n *gaugeNode) addGauge(g *Gauge, lvs lv.LabelValues) *Gauge { method walk (line 367) | func (n *gaugeNode) walk(fn func(string, lv.LabelValues, float64) bool... FILE: metrics/influxstatsd/influxstatsd_test.go function TestCounter (line 10) | func TestCounter(t *testing.T) { function TestCounterSampled (line 22) | func TestCounterSampled(t *testing.T) { function TestGauge (line 29) | func TestGauge(t *testing.T) { function TestHistogram (line 44) | func TestHistogram(t *testing.T) { function TestHistogramSampled (line 56) | func TestHistogramSampled(t *testing.T) { function TestTiming (line 68) | func TestTiming(t *testing.T) { function TestTimingSampled (line 80) | func TestTimingSampled(t *testing.T) { FILE: metrics/internal/convert/convert.go type counterHistogram (line 7) | type counterHistogram struct method With (line 18) | func (ch counterHistogram) With(labelValues ...string) metrics.Histogr... method Observe (line 23) | func (ch counterHistogram) Observe(value float64) { function NewCounterAsHistogram (line 13) | func NewCounterAsHistogram(c metrics.Counter) metrics.Histogram { type histogramCounter (line 27) | type histogramCounter struct method With (line 38) | func (hc histogramCounter) With(labelValues ...string) metrics.Counter { method Add (line 43) | func (hc histogramCounter) Add(delta float64) { function NewHistogramAsCounter (line 33) | func NewHistogramAsCounter(h metrics.Histogram) metrics.Counter { type counterGauge (line 47) | type counterGauge struct method With (line 58) | func (cg counterGauge) With(labelValues ...string) metrics.Gauge { method Set (line 63) | func (cg counterGauge) Set(value float64) { method Add (line 68) | func (cg counterGauge) Add(delta float64) { function NewCounterAsGauge (line 53) | func NewCounterAsGauge(c metrics.Counter) metrics.Gauge { type gaugeCounter (line 72) | type gaugeCounter struct method With (line 83) | func (gc gaugeCounter) With(labelValues ...string) metrics.Counter { method Add (line 88) | func (gc gaugeCounter) Add(delta float64) { function NewGaugeAsCounter (line 78) | func NewGaugeAsCounter(g metrics.Gauge) metrics.Counter { type histogramGauge (line 92) | type histogramGauge struct method With (line 103) | func (hg histogramGauge) With(labelValues ...string) metrics.Gauge { method Set (line 108) | func (hg histogramGauge) Set(value float64) { method Add (line 113) | func (hg histogramGauge) Add(delta float64) { function NewHistogramAsGauge (line 98) | func NewHistogramAsGauge(h metrics.Histogram) metrics.Gauge { type gaugeHistogram (line 117) | type gaugeHistogram struct method With (line 128) | func (gh gaugeHistogram) With(labelValues ...string) metrics.Histogram { method Observe (line 133) | func (gh gaugeHistogram) Observe(value float64) { function NewGaugeAsHistogram (line 123) | func NewGaugeAsHistogram(g metrics.Gauge) metrics.Histogram { FILE: metrics/internal/convert/convert_test.go function TestCounterHistogramConversion (line 10) | func TestCounterHistogramConversion(t *testing.T) { function TestCounterGaugeConversion (line 25) | func TestCounterGaugeConversion(t *testing.T) { function TestHistogramGaugeConversion (line 40) | func TestHistogramGaugeConversion(t *testing.T) { FILE: metrics/internal/lv/labelvalues.go type LabelValues (line 6) | type LabelValues method With (line 9) | func (lvs LabelValues) With(labelValues ...string) LabelValues { FILE: metrics/internal/lv/labelvalues_test.go function TestWith (line 8) | func TestWith(t *testing.T) { FILE: metrics/internal/lv/space.go function NewSpace (line 6) | func NewSpace() *Space { type Space (line 13) | type Space struct method Observe (line 20) | func (s *Space) Observe(name string, lvs LabelValues, value float64) { method Add (line 27) | func (s *Space) Add(name string, lvs LabelValues, delta float64) { method Walk (line 33) | func (s *Space) Walk(fn func(name string, lvs LabelValues, observation... method Reset (line 46) | func (s *Space) Reset() *Space { method nodeFor (line 54) | func (s *Space) nodeFor(name string) *node { type node (line 71) | type node struct method observe (line 79) | func (n *node) observe(lvs LabelValues, value float64) { method add (line 101) | func (n *node) add(lvs LabelValues, delta float64) { method walk (line 129) | func (n *node) walk(lvs LabelValues, fn func(LabelValues, []float64) b... type pair (line 77) | type pair struct function last (line 143) | func last(a []float64) float64 { FILE: metrics/internal/lv/space_test.go function TestSpaceWalkAbort (line 8) | func TestSpaceWalkAbort(t *testing.T) { function TestSpaceWalkSums (line 29) | func TestSpaceWalkSums(t *testing.T) { function TestSpaceWalkSkipsEmptyDimensions (line 66) | func TestSpaceWalkSkipsEmptyDimensions(t *testing.T) { function sum (line 80) | func sum(a []float64) (v float64) { FILE: metrics/internal/ratemap/ratemap.go type RateMap (line 10) | type RateMap struct method Set (line 24) | func (m *RateMap) Set(name string, rate float64) { method Get (line 32) | func (m *RateMap) Get(name string) float64 { function New (line 16) | func New() *RateMap { FILE: metrics/metrics.go type Counter (line 5) | type Counter interface type Gauge (line 12) | type Gauge interface type Histogram (line 22) | type Histogram interface FILE: metrics/multi/multi.go type Counter (line 10) | type Counter method Add (line 18) | func (c Counter) Add(delta float64) { method With (line 25) | func (c Counter) With(labelValues ...string) metrics.Counter { function NewCounter (line 13) | func NewCounter(c ...metrics.Counter) Counter { type Gauge (line 34) | type Gauge method Set (line 42) | func (g Gauge) Set(value float64) { method With (line 49) | func (g Gauge) With(labelValues ...string) metrics.Gauge { method Add (line 58) | func (g Gauge) Add(delta float64) { function NewGauge (line 37) | func NewGauge(g ...metrics.Gauge) Gauge { type Histogram (line 65) | type Histogram method Observe (line 73) | func (h Histogram) Observe(value float64) { method With (line 80) | func (h Histogram) With(labelValues ...string) metrics.Histogram { function NewHistogram (line 68) | func NewHistogram(h ...metrics.Histogram) Histogram { FILE: metrics/multi/multi_test.go function TestMultiCounter (line 10) | func TestMultiCounter(t *testing.T) { function TestMultiGauge (line 27) | func TestMultiGauge(t *testing.T) { function TestMultiHistogram (line 46) | func TestMultiHistogram(t *testing.T) { type mockCounter (line 65) | type mockCounter struct method Add (line 69) | func (c *mockCounter) Add(delta float64) { c.obs = append... method With (line 70) | func (c *mockCounter) With(...string) metrics.Counter { return c } method String (line 71) | func (c *mockCounter) String() string { return fmt.Spr... type mockGauge (line 73) | type mockGauge struct method Set (line 77) | func (g *mockGauge) Set(value float64) { g.obs = append(g.o... method With (line 78) | func (g *mockGauge) With(...string) metrics.Gauge { return g } method String (line 79) | func (g *mockGauge) String() string { return fmt.Sprintf... method Add (line 80) | func (g *mockGauge) Add(delta float64) { type mockHistogram (line 90) | type mockHistogram struct method Observe (line 94) | func (h *mockHistogram) Observe(value float64) { h.obs = ap... method With (line 95) | func (h *mockHistogram) With(...string) metrics.Histogram { return h } method String (line 96) | func (h *mockHistogram) String() string { return fmt... FILE: metrics/pcp/pcp.go type Reporter (line 10) | type Reporter struct method Start (line 29) | func (r *Reporter) Start() { r.c.MustStart() } method Stop (line 33) | func (r *Reporter) Stop() { r.c.MustStop() } method NewCounter (line 43) | func (r *Reporter) NewCounter(name string, desc ...string) (*Counter, ... method NewGauge (line 68) | func (r *Reporter) NewGauge(name string, desc ...string) (*Gauge, erro... method NewHistogram (line 99) | func (r *Reporter) NewHistogram(name string, min, max int64, unit spee... function NewReporter (line 18) | func NewReporter(appname string) (*Reporter, error) { type Counter (line 36) | type Counter struct method With (line 54) | func (c *Counter) With(labelValues ...string) metrics.Counter { return... method Add (line 58) | func (c *Counter) Add(delta float64) { c.c.Inc(int64(delta)) } type Gauge (line 61) | type Gauge struct method With (line 79) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { return g } method Set (line 82) | func (g *Gauge) Set(value float64) { g.g.Set(value) } method Add (line 85) | func (g *Gauge) Add(delta float64) { g.g.Inc(delta) } type Histogram (line 88) | type Histogram struct method With (line 110) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { re... method Observe (line 118) | func (h *Histogram) Observe(value float64) { h.h.MustRecord(int64(valu... method Mean (line 121) | func (h *Histogram) Mean() float64 { return h.h.Mean() } method Percentile (line 125) | func (h *Histogram) Percentile(p float64) int64 { return h.h.Percentil... FILE: metrics/pcp/pcp_test.go function TestCounter (line 11) | func TestCounter(t *testing.T) { function TestGauge (line 30) | func TestGauge(t *testing.T) { function TestHistogram (line 49) | func TestHistogram(t *testing.T) { FILE: metrics/prometheus/prometheus.go type Counter (line 15) | type Counter struct method With (line 36) | func (c *Counter) With(labelValues ...string) metrics.Counter { method Add (line 44) | func (c *Counter) Add(delta float64) { function NewCounterFrom (line 22) | func NewCounterFrom(opts prometheus.CounterOpts, labelNames []string) *C... function NewCounter (line 29) | func NewCounter(cv *prometheus.CounterVec) *Counter { type Gauge (line 49) | type Gauge struct method With (line 70) | func (g *Gauge) With(labelValues ...string) metrics.Gauge { method Set (line 78) | func (g *Gauge) Set(value float64) { method Add (line 83) | func (g *Gauge) Add(delta float64) { function NewGaugeFrom (line 56) | func NewGaugeFrom(opts prometheus.GaugeOpts, labelNames []string) *Gauge { function NewGauge (line 63) | func NewGauge(gv *prometheus.GaugeVec) *Gauge { type Summary (line 90) | type Summary struct method With (line 111) | func (s *Summary) With(labelValues ...string) metrics.Histogram { method Observe (line 119) | func (s *Summary) Observe(value float64) { function NewSummaryFrom (line 97) | func NewSummaryFrom(opts prometheus.SummaryOpts, labelNames []string) *S... function NewSummary (line 104) | func NewSummary(sv *prometheus.SummaryVec) *Summary { type Histogram (line 126) | type Histogram struct method With (line 147) | func (h *Histogram) With(labelValues ...string) metrics.Histogram { method Observe (line 155) | func (h *Histogram) Observe(value float64) { function NewHistogramFrom (line 133) | func NewHistogramFrom(opts prometheus.HistogramOpts, labelNames []string... function NewHistogram (line 140) | func NewHistogram(hv *prometheus.HistogramVec) *Histogram { function makeLabels (line 159) | func makeLabels(labelValues ...string) prometheus.Labels { FILE: metrics/prometheus/prometheus_test.go function TestCounter (line 20) | func TestCounter(t *testing.T) { function TestGauge (line 51) | func TestGauge(t *testing.T) { function TestSummary (line 82) | func TestSummary(t *testing.T) { function TestHistogram (line 122) | func TestHistogram(t *testing.T) { function TestInconsistentLabelCardinality (line 192) | func TestInconsistentLabelCardinality(t *testing.T) { FILE: metrics/provider/discard.go type discardProvider (line 8) | type discardProvider struct method NewCounter (line 15) | func (discardProvider) NewCounter(string) metrics.Counter { return dis... method NewGauge (line 18) | func (discardProvider) NewGauge(string) metrics.Gauge { return discard... method NewHistogram (line 21) | func (discardProvider) NewHistogram(string, int) metrics.Histogram { r... method Stop (line 24) | func (discardProvider) Stop() {} function NewDiscardProvider (line 12) | func NewDiscardProvider() Provider { return discardProvider{} } FILE: metrics/provider/dogstatsd.go type dogstatsdProvider (line 8) | type dogstatsdProvider struct method NewCounter (line 25) | func (p *dogstatsdProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 30) | func (p *dogstatsdProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 36) | func (p *dogstatsdProvider) NewHistogram(name string, _ int) metrics.H... method Stop (line 41) | func (p *dogstatsdProvider) Stop() { function NewDogstatsdProvider (line 16) | func NewDogstatsdProvider(d *dogstatsd.Dogstatsd, stop func()) Provider { FILE: metrics/provider/expvar.go type expvarProvider (line 8) | type expvarProvider struct method NewCounter (line 16) | func (p expvarProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 21) | func (p expvarProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 26) | func (p expvarProvider) NewHistogram(name string, buckets int) metrics... method Stop (line 31) | func (p expvarProvider) Stop() {} function NewExpvarProvider (line 11) | func NewExpvarProvider() Provider { FILE: metrics/provider/graphite.go type graphiteProvider (line 8) | type graphiteProvider struct method NewCounter (line 24) | func (p *graphiteProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 29) | func (p *graphiteProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 34) | func (p *graphiteProvider) NewHistogram(name string, buckets int) metr... method Stop (line 39) | func (p *graphiteProvider) Stop() { function NewGraphiteProvider (line 16) | func NewGraphiteProvider(g *graphite.Graphite, stop func()) Provider { FILE: metrics/provider/influx.go type influxProvider (line 8) | type influxProvider struct method NewCounter (line 23) | func (p *influxProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 28) | func (p *influxProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 33) | func (p *influxProvider) NewHistogram(name string, buckets int) metric... method Stop (line 38) | func (p *influxProvider) Stop() { function NewInfluxProvider (line 15) | func NewInfluxProvider(in *influx.Influx, stop func()) Provider { FILE: metrics/provider/prometheus.go type prometheusProvider (line 10) | type prometheusProvider struct method NewCounter (line 28) | func (p *prometheusProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 40) | func (p *prometheusProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 53) | func (p *prometheusProvider) NewHistogram(name string, _ int) metrics.... method Stop (line 63) | func (p *prometheusProvider) Stop() {} function NewPrometheusProvider (line 17) | func NewPrometheusProvider(namespace, subsystem string) Provider { FILE: metrics/provider/provider.go type Provider (line 37) | type Provider interface FILE: metrics/provider/statsd.go type statsdProvider (line 8) | type statsdProvider struct method NewCounter (line 24) | func (p *statsdProvider) NewCounter(name string) metrics.Counter { method NewGauge (line 29) | func (p *statsdProvider) NewGauge(name string) metrics.Gauge { method NewHistogram (line 36) | func (p *statsdProvider) NewHistogram(name string, _ int) metrics.Hist... method Stop (line 41) | func (p *statsdProvider) Stop() { function NewStatsdProvider (line 16) | func NewStatsdProvider(s *statsd.Statsd, stop func()) Provider { FILE: metrics/statsd/statsd.go type Statsd (line 34) | type Statsd struct method NewCounter (line 65) | func (s *Statsd) NewCounter(name string, sampleRate float64) *Counter { method NewGauge (line 74) | func (s *Statsd) NewGauge(name string) *Gauge { method NewTiming (line 84) | func (s *Statsd) NewTiming(name string, sampleRate float64) *Timing { method WriteLoop (line 96) | func (s *Statsd) WriteLoop(ctx context.Context, c <-chan time.Time, w ... method SendLoop (line 114) | func (s *Statsd) SendLoop(ctx context.Context, c <-chan time.Time, net... method WriteTo (line 122) | func (s *Statsd) WriteTo(w io.Writer) (count int64, err error) { function New (line 53) | func New(prefix string, logger log.Logger) *Statsd { function sum (line 167) | func sum(a []float64) float64 { function last (line 175) | func last(a []float64) float64 { function sampling (line 179) | func sampling(r float64) string { type observeFunc (line 187) | type observeFunc type Counter (line 191) | type Counter struct method With (line 197) | func (c *Counter) With(...string) metrics.Counter { method Add (line 202) | func (c *Counter) Add(delta float64) { type Gauge (line 208) | type Gauge struct method With (line 215) | func (g *Gauge) With(...string) metrics.Gauge { method Set (line 220) | func (g *Gauge) Set(value float64) { method Add (line 225) | func (g *Gauge) Add(delta float64) { type Timing (line 232) | type Timing struct method With (line 238) | func (t *Timing) With(...string) metrics.Histogram { method Observe (line 243) | func (t *Timing) Observe(value float64) { FILE: metrics/statsd/statsd_test.go function TestCounter (line 10) | func TestCounter(t *testing.T) { function TestCounterSampled (line 22) | func TestCounterSampled(t *testing.T) { function TestGauge (line 29) | func TestGauge(t *testing.T) { function TestTiming (line 44) | func TestTiming(t *testing.T) { function TestTimingSampled (line 56) | func TestTimingSampled(t *testing.T) { FILE: metrics/teststat/buffers.go function SumLines (line 16) | func SumLines(w io.WriterTo, regex string) func() float64 { function LastLine (line 26) | func LastLine(w io.WriterTo, regex string) func() []float64 { function Quantiles (line 38) | func Quantiles(w io.WriterTo, regex string, buckets int) func() (float64... function stats (line 46) | func stats(w io.WriterTo, regex string, h *generic.Histogram) (sum, fina... FILE: metrics/teststat/populate.go function PopulateNormalHistogram (line 18) | func PopulateNormalHistogram(h metrics.Histogram, seed int) { function normalQuantiles (line 29) | func normalQuantiles() (p50, p90, p95, p99 float64) { function nvq (line 33) | func nvq(quantile int) float64 { function erfinv (line 38) | func erfinv(y float64) float64 { FILE: metrics/teststat/teststat.go function TestCounter (line 18) | func TestCounter(counter metrics.Counter, value func() float64) error { function FillCounter (line 28) | func FillCounter(counter metrics.Counter) float64 { function TestGauge (line 43) | func TestGauge(gauge metrics.Gauge, value func() []float64) error { function TestHistogram (line 83) | func TestHistogram(histogram metrics.Histogram, quantiles func() (p50, p... function ExpectedObservationsLessThan (line 123) | func ExpectedObservationsLessThan(bucket int64) int64 { function cmp (line 129) | func cmp(want, have, tol float64) bool { FILE: metrics/timer.go type Timer (line 7) | type Timer struct method ObserveDuration (line 24) | func (t *Timer) ObserveDuration() { method Unit (line 34) | func (t *Timer) Unit(u time.Duration) { function NewTimer (line 14) | func NewTimer(h Histogram) *Timer { FILE: metrics/timer_test.go function TestTimerFast (line 13) | func TestTimerFast(t *testing.T) { function TestTimerSlow (line 23) | func TestTimerSlow(t *testing.T) { function TestTimerUnit (line 35) | func TestTimerUnit(t *testing.T) { FILE: ratelimit/token_bucket.go type Allower (line 17) | type Allower interface function NewErroringLimiter (line 24) | func NewErroringLimiter(limit Allower) endpoint.Middleware { type Waiter (line 38) | type Waiter interface function NewDelayingLimiter (line 45) | func NewDelayingLimiter(limit Waiter) endpoint.Middleware { type AllowerFunc (line 58) | type AllowerFunc method Allow (line 61) | func (f AllowerFunc) Allow() bool { type WaiterFunc (line 67) | type WaiterFunc method Wait (line 70) | func (f WaiterFunc) Wait(ctx context.Context) error { FILE: ratelimit/token_bucket_test.go function TestXRateErroring (line 17) | func TestXRateErroring(t *testing.T) { function TestXRateDelaying (line 25) | func TestXRateDelaying(t *testing.T) { function testSuccessThenFailure (line 33) | func testSuccessThenFailure(t *testing.T, e endpoint.Endpoint, failConta... FILE: sd/benchmark_test.go function BenchmarkEndpoints (line 11) | func BenchmarkEndpoints(b *testing.B) { FILE: sd/consul/client.go type Client (line 8) | type Client interface type client (line 19) | type client struct method Register (line 29) | func (c *client) Register(r *consul.AgentServiceRegistration) error { method Deregister (line 33) | func (c *client) Deregister(r *consul.AgentServiceRegistration) error { method Service (line 37) | func (c *client) Service(service, tag string, passingOnly bool, queryO... function NewClient (line 25) | func NewClient(c *consul.Client) Client { FILE: sd/consul/client_test.go function TestClientRegistration (line 15) | func TestClientRegistration(t *testing.T) { type testClient (line 59) | type testClient struct method Service (line 71) | func (c *testClient) Service(service, tag string, _ bool, opts *stdcon... method Register (line 96) | func (c *testClient) Register(r *stdconsul.AgentServiceRegistration) e... method Deregister (line 109) | func (c *testClient) Deregister(r *stdconsul.AgentServiceRegistration)... function newTestClient (line 63) | func newTestClient(entries []*stdconsul.ServiceEntry) *testClient { function registration2entry (line 127) | func registration2entry(r *stdconsul.AgentServiceRegistration) *stdconsu... function testFactory (line 144) | func testFactory(instance string) (endpoint.Endpoint, io.Closer, error) { FILE: sd/consul/instancer.go constant defaultIndex (line 16) | defaultIndex = 0 type Instancer (line 22) | type Instancer struct method Stop (line 59) | func (s *Instancer) Stop() { method loop (line 63) | func (s *Instancer) loop(lastIndex uint64) { method getInstances (line 97) | func (s *Instancer) getInstances(lastIndex uint64, interruptc chan str... method Register (line 147) | func (s *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 152) | func (s *Instancer) Deregister(ch chan<- sd.Event) { function NewInstancer (line 35) | func NewInstancer(client Client, logger log.Logger, service string, tags... function filterEntries (line 156) | func filterEntries(entries []*consul.ServiceEntry, tags ...string) []*co... function makeInstances (line 177) | func makeInstances(entries []*consul.ServiceEntry) []string { FILE: sd/consul/instancer_test.go function TestInstancer (line 66) | func TestInstancer(t *testing.T) { function TestInstancerNoService (line 81) | func TestInstancerNoService(t *testing.T) { function TestInstancerWithTags (line 96) | func TestInstancerWithTags(t *testing.T) { function TestInstancerAddressOverride (line 111) | func TestInstancerAddressOverride(t *testing.T) { type eofTestClient (line 138) | type eofTestClient struct method Register (line 148) | func (c *eofTestClient) Register(r *consul.AgentServiceRegistration) e... method Deregister (line 152) | func (c *eofTestClient) Deregister(r *consul.AgentServiceRegistration)... method Service (line 156) | func (c *eofTestClient) Service(service, tag string, passingOnly bool,... function neweofTestClient (line 144) | func neweofTestClient(client *testClient, sig chan bool, called chan str... function TestInstancerWithEOF (line 165) | func TestInstancerWithEOF(t *testing.T) { type badIndexTestClient (line 208) | type badIndexTestClient struct method Register (line 217) | func (c *badIndexTestClient) Register(r *consul.AgentServiceRegistrati... method Deregister (line 221) | func (c *badIndexTestClient) Deregister(r *consul.AgentServiceRegistra... method Service (line 225) | func (c *badIndexTestClient) Service(service, tag string, passingOnly ... function newBadIndexTestClient (line 213) | func newBadIndexTestClient(client *testClient, called chan struct{}) Cli... function TestInstancerWithInvalidIndex (line 237) | func TestInstancerWithInvalidIndex(t *testing.T) { type indexTestClient (line 266) | type indexTestClient struct method Register (line 280) | func (i *indexTestClient) Register(r *consul.AgentServiceRegistration)... method Deregister (line 284) | func (i *indexTestClient) Deregister(r *consul.AgentServiceRegistratio... method Service (line 288) | func (i *indexTestClient) Service(service, tag string, passingOnly boo... function newIndexTestClient (line 272) | func newIndexTestClient(c *testClient, errs chan error) *indexTestClient { function TestInstancerLoopIndex (line 308) | func TestInstancerLoopIndex(t *testing.T) { FILE: sd/consul/integration_test.go function TestIntegration (line 18) | func TestIntegration(t *testing.T) { FILE: sd/consul/registrar.go type Registrar (line 12) | type Registrar struct method Register (line 29) | func (p *Registrar) Register() { method Deregister (line 38) | func (p *Registrar) Deregister() { function NewRegistrar (line 20) | func NewRegistrar(client Client, r *stdconsul.AgentServiceRegistration, ... FILE: sd/consul/registrar_test.go function TestRegistrar (line 11) | func TestRegistrar(t *testing.T) { FILE: sd/dnssrv/instancer.go type Instancer (line 21) | type Instancer struct method Stop (line 66) | func (in *Instancer) Stop() { method loop (line 70) | func (in *Instancer) loop(t *time.Ticker, lookup Lookup) { method resolve (line 89) | func (in *Instancer) resolve(lookup Lookup) ([]string, error) { method Register (line 105) | func (in *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 110) | func (in *Instancer) Deregister(ch chan<- sd.Event) { function NewInstancer (line 29) | func NewInstancer( function NewInstancerDetailed (line 40) | func NewInstancerDetailed( FILE: sd/dnssrv/instancer_test.go function TestRefresh (line 15) | func TestRefresh(t *testing.T) { function TestIssue892 (line 71) | func TestIssue892(t *testing.T) { type nopCloser (line 98) | type nopCloser struct method Close (line 100) | func (nopCloser) Close() error { return nil } FILE: sd/dnssrv/lookup.go type Lookup (line 7) | type Lookup FILE: sd/endpoint_cache.go type endpointCache (line 16) | type endpointCache struct method Update (line 48) | func (c *endpointCache) Update(event Event) { method updateCache (line 73) | func (c *endpointCache) updateCache(instances []string) { method Endpoints (line 120) | func (c *endpointCache) Endpoints() ([]endpoint.Endpoint, error) { type endpointCloser (line 28) | type endpointCloser struct function newEndpointCache (line 34) | func newEndpointCache(factory Factory, logger log.Logger, options endpoi... FILE: sd/endpoint_cache_test.go function TestEndpointCache (line 13) | func TestEndpointCache(t *testing.T) { function TestEndpointCacheErrorAndTimeout (line 82) | func TestEndpointCacheErrorAndTimeout(t *testing.T) { function TestBadFactory (line 143) | func TestBadFactory(t *testing.T) { function assertEndpointsLen (line 152) | func assertEndpointsLen(t *testing.T, cache *endpointCache, l int) { function assertEndpointsError (line 163) | func assertEndpointsError(t *testing.T, cache *endpointCache, wantErr st... type closer (line 178) | type closer method Close (line 180) | func (c closer) Close() error { close(c); return nil } FILE: sd/endpointer.go type Endpointer (line 14) | type Endpointer interface type FixedEndpointer (line 19) | type FixedEndpointer method Endpoints (line 22) | func (s FixedEndpointer) Endpoints() ([]endpoint.Endpoint, error) { re... function NewEndpointer (line 28) | func NewEndpointer(src Instancer, f Factory, logger log.Logger, options ... type EndpointerOption (line 44) | type EndpointerOption function InvalidateOnError (line 53) | func InvalidateOnError(timeout time.Duration) EndpointerOption { type endpointerOptions (line 60) | type endpointerOptions struct type DefaultEndpointer (line 69) | type DefaultEndpointer struct method receive (line 75) | func (de *DefaultEndpointer) receive() { method Close (line 82) | func (de *DefaultEndpointer) Close() { method Endpoints (line 88) | func (de *DefaultEndpointer) Endpoints() ([]endpoint.Endpoint, error) { FILE: sd/endpointer_test.go function TestDefaultEndpointer (line 14) | func TestDefaultEndpointer(t *testing.T) { type mockInstancer (line 70) | type mockInstancer struct type closer (line 72) | type closer method Close (line 74) | func (c closer) Close() error { close(c); return nil } function within (line 76) | func within(d time.Duration, f func() bool) bool { FILE: sd/etcd/client.go type Client (line 25) | type Client interface type client (line 47) | type client struct method GetEntries (line 120) | func (c *client) GetEntries(key string) ([]string, error) { method WatchPrefix (line 141) | func (c *client) WatchPrefix(prefix string, ch chan struct{}) { method Register (line 152) | func (c *client) Register(s Service) error { method Deregister (line 171) | func (c *client) Deregister(s Service) error { type ClientOptions (line 54) | type ClientOptions struct function NewClient (line 67) | func NewClient(ctx context.Context, machines []string, options ClientOpt... FILE: sd/etcd/client_test.go function TestNewClient (line 13) | func TestNewClient(t *testing.T) { function TestOptions (line 32) | func TestOptions(t *testing.T) { type fakeKeysAPI (line 73) | type fakeKeysAPI struct method Get (line 85) | func (fka *fakeKeysAPI) Get(ctx context.Context, key string, opts *etc... method Set (line 93) | func (fka *fakeKeysAPI) Set(ctx context.Context, key, value string, op... method Delete (line 98) | func (fka *fakeKeysAPI) Delete(ctx context.Context, key string, opts *... method Create (line 103) | func (fka *fakeKeysAPI) Create(ctx context.Context, key, value string)... method CreateInOrder (line 108) | func (fka *fakeKeysAPI) CreateInOrder(ctx context.Context, dir, value ... method Update (line 113) | func (fka *fakeKeysAPI) Update(ctx context.Context, key, value string)... method Watcher (line 118) | func (fka *fakeKeysAPI) Watcher(key string, opts *etcd.WatcherOptions)... type getResult (line 79) | type getResult struct type fakeWatcher (line 123) | type fakeWatcher struct method Next (line 131) | func (fw *fakeWatcher) Next(context.Context) (*etcd.Response, error) { function newFakeClient (line 142) | func newFakeClient(event, err chan bool, getres *getResult) Client { function TestRegisterClient (line 150) | func TestRegisterClient(t *testing.T) { function TestDeregisterClient (line 170) | func TestDeregisterClient(t *testing.T) { function TestWatchPrefix (line 186) | func TestWatchPrefix(t *testing.T) { function TestGetEntries (line 300) | func TestGetEntries(t *testing.T) { FILE: sd/etcd/example_test.go function Example (line 14) | func Example() { function barFactory (line 69) | func barFactory(string) (endpoint.Endpoint, io.Closer, error) { return e... FILE: sd/etcd/instancer.go type Instancer (line 11) | type Instancer struct method loop (line 42) | func (s *Instancer) loop() { method Stop (line 63) | func (s *Instancer) Stop() { method Register (line 68) | func (s *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 73) | func (s *Instancer) Deregister(ch chan<- sd.Event) { function NewInstancer (line 21) | func NewInstancer(c Client, prefix string, logger log.Logger) (*Instance... FILE: sd/etcd/instancer_test.go function TestInstancer (line 30) | func TestInstancer(t *testing.T) { type fakeClient (line 46) | type fakeClient struct method GetEntries (line 50) | func (c *fakeClient) GetEntries(prefix string) ([]string, error) { method WatchPrefix (line 63) | func (c *fakeClient) WatchPrefix(prefix string, ch chan struct{}) {} method Register (line 65) | func (c *fakeClient) Register(Service) error { method Deregister (line 68) | func (c *fakeClient) Deregister(Service) error { FILE: sd/etcd/integration_test.go function TestIntegration (line 21) | func TestIntegration(t *testing.T) { function within (line 116) | func within(d time.Duration, f func() bool) bool { FILE: sd/etcd/registrar.go constant minHeartBeatTime (line 12) | minHeartBeatTime = 500 * time.Millisecond type Registrar (line 15) | type Registrar struct method Register (line 72) | func (r *Registrar) Register() { method loop (line 83) | func (r *Registrar) loop() { method Deregister (line 107) | func (r *Registrar) Deregister() { type Service (line 27) | type Service struct type TTLOption (line 36) | type TTLOption struct function NewTTLOption (line 47) | func NewTTLOption(heartbeat, ttl time.Duration) *TTLOption { function NewRegistrar (line 62) | func NewRegistrar(client Client, service Service, logger log.Logger) *Re... FILE: sd/etcd/registrar_test.go type testClient (line 12) | type testClient struct method GetEntries (line 16) | func (tc *testClient) GetEntries(prefix string) ([]string, error) { method WatchPrefix (line 20) | func (tc *testClient) WatchPrefix(prefix string, ch chan struct{}) { method Register (line 24) | func (tc *testClient) Register(s Service) error { method Deregister (line 28) | func (tc *testClient) Deregister(s Service) error { function TestNewRegistar (line 36) | func TestNewRegistar(t *testing.T) { function TestRegister (line 67) | func TestRegister(t *testing.T) { function TestDeregister (line 96) | func TestDeregister(t *testing.T) { FILE: sd/etcdv3/client.go type Client (line 23) | type Client interface type client (line 48) | type client struct method LeaseID (line 133) | func (c *client) LeaseID() int64 { return int64(c.leaseID) } method GetEntries (line 136) | func (c *client) GetEntries(key string) ([]string, error) { method WatchPrefix (line 151) | func (c *client) WatchPrefix(prefix string, ch chan struct{}) { method Register (line 165) | func (c *client) Register(s Service) error { method Deregister (line 234) | func (c *client) Deregister(s Service) error { method close (line 249) | func (c *client) close() { type ClientOptions (line 71) | type ClientOptions struct function NewClient (line 89) | func NewClient(ctx context.Context, machines []string, options ClientOpt... FILE: sd/etcdv3/client_test.go constant irrelevantEndpoint (line 13) | irrelevantEndpoint = "http://irrelevant:12345" function TestNewClient (line 16) | func TestNewClient(t *testing.T) { function TestClientOptions (line 33) | func TestClientOptions(t *testing.T) { FILE: sd/etcdv3/example_test.go function Example (line 15) | func Example() { function barFactory (line 96) | func barFactory(string) (endpoint.Endpoint, io.Closer, error) { return e... FILE: sd/etcdv3/instancer.go type Instancer (line 11) | type Instancer struct method loop (line 42) | func (s *Instancer) loop() { method Stop (line 64) | func (s *Instancer) Stop() { method Register (line 69) | func (s *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 74) | func (s *Instancer) Deregister(ch chan<- sd.Event) { function NewInstancer (line 21) | func NewInstancer(c Client, prefix string, logger log.Logger) (*Instance... FILE: sd/etcdv3/instancer_test.go type testKV (line 13) | type testKV struct type testResponse (line 18) | type testResponse struct function TestInstancer (line 39) | func TestInstancer(t *testing.T) { type fakeClient (line 55) | type fakeClient struct method GetEntries (line 59) | func (c *fakeClient) GetEntries(prefix string) ([]string, error) { method WatchPrefix (line 72) | func (c *fakeClient) WatchPrefix(prefix string, ch chan struct{}) { method LeaseID (line 75) | func (c *fakeClient) LeaseID() int64 { method Register (line 79) | func (c *fakeClient) Register(Service) error { method Deregister (line 82) | func (c *fakeClient) Deregister(Service) error { FILE: sd/etcdv3/integration_test.go function runIntegration (line 18) | func runIntegration(settings integrationSettings, client Client, service... type integrationSettings (line 103) | type integrationSettings struct function testIntegrationSettings (line 111) | func testIntegrationSettings(t *testing.T) integrationSettings { function TestIntegration (line 130) | func TestIntegration(t *testing.T) { function TestIntegrationTTL (line 148) | func TestIntegrationTTL(t *testing.T) { function TestIntegrationRegistrarOnly (line 168) | func TestIntegrationRegistrarOnly(t *testing.T) { function within (line 212) | func within(d time.Duration, f func() bool) bool { FILE: sd/etcdv3/registrar.go constant minHeartBeatTime (line 10) | minHeartBeatTime = 500 * time.Millisecond type Registrar (line 13) | type Registrar struct method Register (line 69) | func (r *Registrar) Register() { method Deregister (line 83) | func (r *Registrar) Deregister() { type Service (line 25) | type Service struct type TTLOption (line 33) | type TTLOption struct function NewTTLOption (line 44) | func NewTTLOption(heartbeat, ttl time.Duration) *TTLOption { function NewRegistrar (line 59) | func NewRegistrar(client Client, service Service, logger log.Logger) *Re... FILE: sd/etcdv3/registrar_test.go type testClient (line 12) | type testClient struct method GetEntries (line 16) | func (tc *testClient) GetEntries(prefix string) ([]string, error) { method WatchPrefix (line 20) | func (tc *testClient) WatchPrefix(prefix string, ch chan struct{}) { method Register (line 23) | func (tc *testClient) Register(s Service) error { method Deregister (line 27) | func (tc *testClient) Deregister(s Service) error { method LeaseID (line 31) | func (tc *testClient) LeaseID() int64 { function TestNewRegistar (line 43) | func TestNewRegistar(t *testing.T) { function TestRegister (line 61) | func TestRegister(t *testing.T) { function TestDeregister (line 91) | func TestDeregister(t *testing.T) { FILE: sd/eureka/instancer.go type Instancer (line 15) | type Instancer struct method Stop (line 44) | func (s *Instancer) Stop() { method consume (line 51) | func (s *Instancer) consume(update fargo.AppUpdate) { method loop (line 62) | func (s *Instancer) loop(updates <-chan fargo.AppUpdate, done chan<- s... method getInstances (line 76) | func (s *Instancer) getInstances() ([]string, error) { method Register (line 93) | func (s *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 98) | func (s *Instancer) Deregister(ch chan<- sd.Event) { method state (line 103) | func (s *Instancer) state() sd.Event { function NewInstancer (line 25) | func NewInstancer(conn fargoConnection, app string, logger log.Logger) *... function convertFargoAppToInstances (line 84) | func convertFargoAppToInstances(app *fargo.Application) []string { FILE: sd/eureka/instancer_test.go function TestInstancer (line 14) | func TestInstancer(t *testing.T) { function TestInstancerReceivesUpdates (line 33) | func TestInstancerReceivesUpdates(t *testing.T) { function TestBadInstancerScheduleUpdates (line 75) | func TestBadInstancerScheduleUpdates(t *testing.T) { FILE: sd/eureka/integration_test.go function TestIntegration (line 25) | func TestIntegration(t *testing.T) { FILE: sd/eureka/registrar.go constant defaultRenewalInterval (line 16) | defaultRenewalInterval = 30 * time.Second type fargoConnection (line 19) | type fargoConnection interface type fargoUnsuccessfulHTTPResponse (line 28) | type fargoUnsuccessfulHTTPResponse struct method Error (line 33) | func (u *fargoUnsuccessfulHTTPResponse) Error() string { type Registrar (line 38) | type Registrar struct method Register (line 59) | func (r *Registrar) Register() { method Deregister (line 76) | func (r *Registrar) Deregister() { method loop (line 90) | func (r *Registrar) loop() { method heartbeat (line 133) | func (r *Registrar) heartbeat() error { function NewRegistrar (line 50) | func NewRegistrar(conn fargoConnection, instance *fargo.Instance, logger... function httpResponseStatusCode (line 117) | func httpResponseStatusCode(err error) (code int, present bool) { function isNotFound (line 128) | func isNotFound(err error) bool { FILE: sd/eureka/registrar_test.go function TestRegistrar (line 8) | func TestRegistrar(t *testing.T) { function TestBadRegister (line 60) | func TestBadRegister(t *testing.T) { function TestBadDeregister (line 72) | func TestBadDeregister(t *testing.T) { function TestExpiredInstance (line 88) | func TestExpiredInstance(t *testing.T) { FILE: sd/eureka/util_test.go type testConnection (line 14) | type testConnection struct method RegisterInstance (line 60) | func (c *testConnection) RegisterInstance(i *fargo.Instance) error { method HeartBeatInstance (line 75) | func (c *testConnection) HeartBeatInstance(i *fargo.Instance) error { method DeregisterInstance (line 79) | func (c *testConnection) DeregisterInstance(i *fargo.Instance) error { method ReregisterInstance (line 99) | func (c *testConnection) ReregisterInstance(ins *fargo.Instance) error { method instancesForApplication (line 103) | func (c *testConnection) instancesForApplication(name string) []*fargo... method GetApp (line 115) | func (c *testConnection) GetApp(name string) (*fargo.Application, erro... method ScheduleAppUpdates (line 126) | func (c *testConnection) ScheduleAppUpdates(name string, await bool, d... FILE: sd/factory.go type Factory (line 17) | type Factory FILE: sd/instancer.go type Event (line 12) | type Event struct type Instancer (line 22) | type Instancer interface type FixedInstancer (line 29) | type FixedInstancer method Register (line 32) | func (d FixedInstancer) Register(ch chan<- Event) { ch <- Event{Instan... method Deregister (line 35) | func (d FixedInstancer) Deregister(ch chan<- Event) {} method Stop (line 38) | func (d FixedInstancer) Stop() {} FILE: sd/internal/instance/cache.go type Cache (line 13) | type Cache struct method Update (line 28) | func (c *Cache) Update(event sd.Event) { method State (line 42) | func (c *Cache) State() sd.Event { method Stop (line 52) | func (c *Cache) Stop() {} method Register (line 55) | func (c *Cache) Register(ch chan<- sd.Event) { method Deregister (line 66) | func (c *Cache) Deregister(ch chan<- sd.Event) { function NewCache (line 20) | func NewCache() *Cache { type registry (line 73) | type registry method broadcast (line 75) | func (r registry) broadcast(event sd.Event) { method register (line 82) | func (r registry) register(c chan<- sd.Event) { method deregister (line 86) | func (r registry) deregister(c chan<- sd.Event) { function copyEvent (line 91) | func copyEvent(e sd.Event) sd.Event { FILE: sd/internal/instance/cache_test.go function TestCache (line 24) | func TestCache(t *testing.T) { function expectUpdate (line 49) | func expectUpdate(t *testing.T, r chan sd.Event, expect []string) { function TestRegistry (line 60) | func TestRegistry(t *testing.T) { function TestDataRace (line 88) | func TestDataRace(t *testing.T) { FILE: sd/lb/balancer.go type Balancer (line 10) | type Balancer interface FILE: sd/lb/random.go function NewRandom (line 11) | func NewRandom(s sd.Endpointer, seed int64) Balancer { type random (line 18) | type random struct method Endpoint (line 23) | func (r *random) Endpoint() (endpoint.Endpoint, error) { FILE: sd/lb/random_test.go function TestRandom (line 12) | func TestRandom(t *testing.T) { function TestRandomNoEndpoints (line 44) | func TestRandomNoEndpoints(t *testing.T) { FILE: sd/lb/retry.go type RetryError (line 14) | type RetryError struct method Error (line 19) | func (e RetryError) Error() string { type Callback (line 37) | type Callback function Retry (line 44) | func Retry(max int, timeout time.Duration, b Balancer) endpoint.Endpoint { function maxRetries (line 48) | func maxRetries(max int) Callback { function alwaysRetry (line 54) | func alwaysRetry(int, error) (keepTrying bool, replacement error) { function RetryWithCallback (line 64) | func RetryWithCallback(timeout time.Duration, b Balancer, cb Callback) e... FILE: sd/lb/retry_test.go function TestRetryMaxTotalFail (line 14) | func TestRetryMaxTotalFail(t *testing.T) { function TestRetryMaxPartialFail (line 26) | func TestRetryMaxPartialFail(t *testing.T) { function TestRetryMaxSuccess (line 47) | func TestRetryMaxSuccess(t *testing.T) { function TestRetryTimeout (line 68) | func TestRetryTimeout(t *testing.T) { function TestAbortEarlyCustomMessage (line 91) | func TestAbortEarlyCustomMessage(t *testing.T) { function TestErrorPassedUnchangedToCallback (line 106) | func TestErrorPassedUnchangedToCallback(t *testing.T) { function TestHandleNilCallback (line 129) | func TestHandleNilCallback(t *testing.T) { FILE: sd/lb/round_robin.go function NewRoundRobin (line 11) | func NewRoundRobin(s sd.Endpointer) Balancer { type roundRobin (line 18) | type roundRobin struct method Endpoint (line 23) | func (rr *roundRobin) Endpoint() (endpoint.Endpoint, error) { FILE: sd/lb/round_robin_test.go function TestRoundRobin (line 15) | func TestRoundRobin(t *testing.T) { function TestRoundRobinNoEndpoints (line 48) | func TestRoundRobinNoEndpoints(t *testing.T) { function TestRoundRobinNoRace (line 57) | func TestRoundRobinNoRace(t *testing.T) { FILE: sd/registrar.go type Registrar (line 10) | type Registrar interface FILE: sd/zk/client.go constant DefaultConnectTimeout (line 26) | DefaultConnectTimeout = 2 * time.Second constant DefaultSessionTimeout (line 29) | DefaultSessionTimeout = 5 * time.Second type Client (line 33) | type Client interface type clientConfig (line 48) | type clientConfig struct type Option (line 59) | type Option type client (line 61) | type client struct method CreateParentNodes (line 185) | func (c *client) CreateParentNodes(path string) error { method GetEntries (line 214) | func (c *client) GetEntries(path string) ([]string, <-chan zk.Event, e... method Register (line 233) | func (c *client) Register(s *Service) error { method Deregister (line 253) | func (c *client) Deregister(s *Service) error { method Stop (line 272) | func (c *client) Stop() { function ACL (line 69) | func ACL(acl []zk.ACL) Option { function Credentials (line 78) | func Credentials(user, pass string) Option { function ConnectTimeout (line 90) | func ConnectTimeout(t time.Duration) Option { function SessionTimeout (line 101) | func SessionTimeout(t time.Duration) Option { function Payload (line 113) | func Payload(payload [][]byte) Option { function EventHandler (line 122) | func EventHandler(handler func(zk.Event)) Option { function NewClient (line 131) | func NewClient(servers []string, logger log.Logger, options ...Option) (... FILE: sd/zk/client_test.go function TestNewClient (line 13) | func TestNewClient(t *testing.T) { function TestOptions (line 77) | func TestOptions(t *testing.T) { function TestCreateParentNodes (line 99) | func TestCreateParentNodes(t *testing.T) { FILE: sd/zk/instancer.go type Instancer (line 13) | type Instancer struct method loop (line 51) | func (s *Instancer) loop(eventc <-chan zk.Event) { method Stop (line 78) | func (s *Instancer) Stop() { method Register (line 83) | func (s *Instancer) Register(ch chan<- sd.Event) { method Deregister (line 88) | func (s *Instancer) Deregister(ch chan<- sd.Event) { method state (line 93) | func (s *Instancer) state() sd.Event { function NewInstancer (line 23) | func NewInstancer(c Client, path string, logger log.Logger) (*Instancer,... FILE: sd/zk/instancer_test.go function TestInstancer (line 12) | func TestInstancer(t *testing.T) { function TestBadFactory (line 27) | func TestBadFactory(t *testing.T) { function TestServiceUpdate (line 48) | func TestServiceUpdate(t *testing.T) { function TestBadInstancerCreate (line 107) | func TestBadInstancerCreate(t *testing.T) { FILE: sd/zk/integration_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function TestCreateParentNodesOnServer (line 26) | func TestCreateParentNodesOnServer(t *testing.T) { function TestCreateBadParentNodesOnServer (line 71) | func TestCreateBadParentNodesOnServer(t *testing.T) { function TestCredentials1 (line 85) | func TestCredentials1(t *testing.T) { function TestCredentials2 (line 100) | func TestCredentials2(t *testing.T) { function TestConnection (line 115) | func TestConnection(t *testing.T) { function TestGetEntriesOnServer (line 129) | func TestGetEntriesOnServer(t *testing.T) { function TestGetEntriesPayloadOnServer (line 177) | func TestGetEntriesPayloadOnServer(t *testing.T) { FILE: sd/zk/logwrapper.go type wrapLogger (line 13) | type wrapLogger struct method Printf (line 17) | func (logger wrapLogger) Printf(format string, args ...interface{}) { function withLogger (line 23) | func withLogger(logger log.Logger) func(c *zk.Conn) { FILE: sd/zk/registrar.go type Registrar (line 6) | type Registrar struct method Register (line 36) | func (r *Registrar) Register() { method Deregister (line 45) | func (r *Registrar) Deregister() { type Service (line 14) | type Service struct function NewRegistrar (line 23) | func NewRegistrar(client Client, service Service, logger log.Logger) *Re... FILE: sd/zk/util_test.go type fakeClient (line 22) | type fakeClient struct method CreateParentNodes (line 37) | func (c *fakeClient) CreateParentNodes(path string) error { method GetEntries (line 44) | func (c *fakeClient) GetEntries(path string) ([]string, <-chan zk.Even... method AddService (line 58) | func (c *fakeClient) AddService(node, data string) { method RemoveService (line 65) | func (c *fakeClient) RemoveService(node string) { method Register (line 72) | func (c *fakeClient) Register(s *Service) error { method Deregister (line 76) | func (c *fakeClient) Deregister(s *Service) error { method SendErrorOnWatch (line 80) | func (c *fakeClient) SendErrorOnWatch() { method ErrorIsConsumedWithin (line 87) | func (c *fakeClient) ErrorIsConsumedWithin(timeout time.Duration) error { method Stop (line 104) | func (c *fakeClient) Stop() {} function newFakeClient (line 29) | func newFakeClient() *fakeClient { function newFactory (line 106) | func newFactory(fakeError string) sd.Factory { function asyncTest (line 115) | func asyncTest(timeout time.Duration, want int, s sd.Endpointer) (err er... FILE: tracing/opencensus/endpoint.go constant TraceEndpointDefaultName (line 14) | TraceEndpointDefaultName = "gokit/endpoint" function TraceEndpoint (line 21) | func TraceEndpoint(name string, options ...EndpointOption) endpoint.Midd... FILE: tracing/opencensus/endpoint_options.go type EndpointOptions (line 10) | type EndpointOptions struct type EndpointOption (line 32) | type EndpointOption function WithEndpointConfig (line 36) | func WithEndpointConfig(options EndpointOptions) EndpointOption { function WithEndpointAttributes (line 44) | func WithEndpointAttributes(attrs ...trace.Attribute) EndpointOption { function WithIgnoreBusinessError (line 52) | func WithIgnoreBusinessError(val bool) EndpointOption { function WithSpanName (line 59) | func WithSpanName(fn func(ctx context.Context, name string) string) Endp... function WithSpanAttributes (line 66) | func WithSpanAttributes(fn func(ctx context.Context) []trace.Attribute) ... FILE: tracing/opencensus/endpoint_test.go constant span1 (line 18) | span1 = "" constant span2 (line 19) | span2 = "SPAN-2" constant span3 (line 20) | span3 = "SPAN-3" constant span4 (line 21) | span4 = "SPAN-4" constant span5 (line 22) | span5 = "SPAN-5" constant span6 (line 23) | span6 = "SPAN-6" type failedResponse (line 36) | type failedResponse struct method Failed (line 40) | func (r failedResponse) Failed() error { return r.err } function passEndpoint (line 42) | func passEndpoint(_ context.Context, req interface{}) (interface{}, erro... function TestTraceEndpoint (line 49) | func TestTraceEndpoint(t *testing.T) { FILE: tracing/opencensus/grpc.go constant propagationKey (line 15) | propagationKey = "grpc-trace-bin" function GRPCClientTrace (line 18) | func GRPCClientTrace(options ...TracerOption) kitgrpc.ClientOption { function GRPCServerTrace (line 71) | func GRPCServerTrace(options ...TracerOption) kitgrpc.ServerOption { FILE: tracing/opencensus/grpc_test.go type dummy (line 19) | type dummy struct constant traceContextKey (line 21) | traceContextKey = "grpc-trace-bin" function unaryInterceptor (line 23) | func unaryInterceptor( function TestGRPCClientTrace (line 30) | func TestGRPCClientTrace(t *testing.T) { function TestGRPCServerTrace (line 112) | func TestGRPCServerTrace(t *testing.T) { FILE: tracing/opencensus/http.go function HTTPClientTrace (line 15) | func HTTPClientTrace(options ...TracerOption) kithttp.ClientOption { function HTTPServerTrace (line 93) | func HTTPServerTrace(options ...TracerOption) kithttp.ServerOption { FILE: tracing/opencensus/http_test.go function TestHTTPClientTrace (line 22) | func TestHTTPClientTrace(t *testing.T) { function TestHTTPServerTrace (line 97) | func TestHTTPServerTrace(t *testing.T) { FILE: tracing/opencensus/jsonrpc.go function JSONRPCClientTrace (line 16) | func JSONRPCClientTrace(options ...TracerOption) jsonrpc.ClientOption { function JSONRPCServerTrace (line 94) | func JSONRPCServerTrace(options ...TracerOption) jsonrpc.ServerOption { FILE: tracing/opencensus/jsonrpc_test.go function TestJSONRPCClientTrace (line 25) | func TestJSONRPCClientTrace(t *testing.T) { function TestJSONRPCServerTrace (line 103) | func TestJSONRPCServerTrace(t *testing.T) { FILE: tracing/opencensus/opencensus_test.go type recordingExporter (line 9) | type recordingExporter struct method ExportSpan (line 14) | func (e *recordingExporter) ExportSpan(d *trace.SpanData) { method Flush (line 21) | func (e *recordingExporter) Flush() (data []*trace.SpanData) { FILE: tracing/opencensus/tracer_options.go type TracerOption (line 15) | type TracerOption function WithTracerConfig (line 18) | func WithTracerConfig(options TracerOptions) TracerOption { function WithSampler (line 25) | func WithSampler(sampler trace.Sampler) TracerOption { function WithName (line 34) | func WithName(name string) TracerOption { function IsPublic (line 45) | func IsPublic(isPublic bool) TracerOption { function WithHTTPPropagation (line 53) | func WithHTTPPropagation(p propagation.HTTPFormat) TracerOption { type TracerOptions (line 65) | type TracerOptions struct FILE: tracing/opentracing/endpoint.go function TraceEndpoint (line 20) | func TraceEndpoint(tracer opentracing.Tracer, operationName string, opts... function TraceServer (line 102) | func TraceServer(tracer opentracing.Tracer, operationName string, opts .... function TraceClient (line 112) | func TraceClient(tracer opentracing.Tracer, operationName string, opts .... function applyTags (line 120) | func applyTags(span opentracing.Span, tags opentracing.Tags) { FILE: tracing/opentracing/endpoint_options.go type EndpointOptions (line 10) | type EndpointOptions struct type EndpointOption (line 31) | type EndpointOption function WithOptions (line 34) | func WithOptions(options EndpointOptions) EndpointOption { function WithIgnoreBusinessError (line 42) | func WithIgnoreBusinessError(ignoreBusinessError bool) EndpointOption { function WithOperationNameFunc (line 50) | func WithOperationNameFunc(getOperationName func(ctx context.Context, na... function WithTags (line 57) | func WithTags(tags opentracing.Tags) EndpointOption { function WithTagsFunc (line 70) | func WithTagsFunc(getTags func(ctx context.Context) opentracing.Tags) En... FILE: tracing/opentracing/endpoint_test.go constant span1 (line 23) | span1 = "SPAN-1" constant span2 (line 24) | span2 = "SPAN-2" constant span3 (line 25) | span3 = "SPAN-3" constant span4 (line 26) | span4 = "SPAN-4" constant span5 (line 27) | span5 = "SPAN-5" constant span6 (line 28) | span6 = "SPAN-6" constant span7 (line 29) | span7 = "SPAN-7" constant span8 (line 30) | span8 = "SPAN-8" type failedResponse (line 42) | type failedResponse struct method Failed (line 46) | func (r failedResponse) Failed() error { function TestTraceEndpoint (line 50) | func TestTraceEndpoint(t *testing.T) { function TestTraceEndpointNoContextSpan (line 83) | func TestTraceEndpointNoContextSpan(t *testing.T) { function TestTraceEndpointWithOptions (line 105) | func TestTraceEndpointWithOptions(t *testing.T) { function TestTraceServer (line 351) | func TestTraceServer(t *testing.T) { function TestTraceClient (line 379) | func TestTraceClient(t *testing.T) { FILE: tracing/opentracing/grpc.go function ContextToGRPC (line 18) | func ContextToGRPC(tracer opentracing.Tracer, logger log.Logger) func(ct... function GRPCToContext (line 35) | func GRPCToContext(tracer opentracing.Tracer, operationName string, logg... type metadataReaderWriter (line 49) | type metadataReaderWriter struct method Set (line 53) | func (w metadataReaderWriter) Set(key, val string) { method ForeachKey (line 61) | func (w metadataReaderWriter) ForeachKey(handler func(key, val string)... FILE: tracing/opentracing/grpc_test.go function TestTraceGRPCRequestRoundtrip (line 15) | func TestTraceGRPCRequestRoundtrip(t *testing.T) { FILE: tracing/opentracing/http.go function ContextToHTTP (line 19) | func ContextToHTTP(tracer opentracing.Tracer, logger log.Logger) kithttp... function HTTPToContext (line 54) | func HTTPToContext(tracer opentracing.Tracer, operationName string, logg... FILE: tracing/opentracing/http_test.go function TestTraceHTTPRequestRoundtrip (line 17) | func TestTraceHTTPRequestRoundtrip(t *testing.T) { function TestContextToHTTPTags (line 68) | func TestContextToHTTPTags(t *testing.T) { function TestHTTPToContextTags (line 87) | func TestHTTPToContextTags(t *testing.T) { FILE: tracing/zipkin/endpoint.go function TraceEndpoint (line 16) | func TraceEndpoint(tracer *zipkin.Tracer, name string) endpoint.Middlewa... FILE: tracing/zipkin/endpoint_test.go constant spanName (line 14) | spanName = "test" function TestTraceEndpoint (line 16) | func TestTraceEndpoint(t *testing.T) { FILE: tracing/zipkin/grpc.go function GRPCClientTrace (line 29) | func GRPCClientTrace(tracer *zipkin.Tracer, options ...TracerOption) kit... function GRPCServerTrace (line 123) | func GRPCServerTrace(tracer *zipkin.Tracer, options ...TracerOption) kit... FILE: tracing/zipkin/grpc_test.go type dummy (line 18) | type dummy struct function unaryInterceptor (line 20) | func unaryInterceptor( function TestGRPCClientTrace (line 27) | func TestGRPCClientTrace(t *testing.T) { function TestGRPCServerTrace (line 75) | func TestGRPCServerTrace(t *testing.T) { FILE: tracing/zipkin/http.go function HTTPClientTrace (line 28) | func HTTPClientTrace(tracer *zipkin.Tracer, options ...TracerOption) kit... function HTTPServerTrace (line 132) | func HTTPServerTrace(tracer *zipkin.Tracer, options ...TracerOption) kit... FILE: tracing/zipkin/http_test.go constant testName (line 24) | testName = "test" constant testBody (line 25) | testBody = "test_body" constant testTagKey (line 26) | testTagKey = "test_key" constant testTagValue (line 27) | testTagValue = "test_value" function TestHTTPClientTracePropagatesParentSpan (line 30) | func TestHTTPClientTracePropagatesParentSpan(t *testing.T) { function TestHTTPClientTraceAddsExpectedTags (line 75) | func TestHTTPClientTraceAddsExpectedTags(t *testing.T) { function testHTTPClientTraceCase (line 89) | func testHTTPClientTraceCase(t *testing.T, responseStatusCode int, errTa... function TestHTTPServerTrace (line 165) | func TestHTTPServerTrace(t *testing.T) { function TestHTTPServerTraceIsRequestBasedSampled (line 224) | func TestHTTPServerTraceIsRequestBasedSampled(t *testing.T) { FILE: tracing/zipkin/options.go type TracerOption (line 10) | type TracerOption function Name (line 15) | func Name(name string) TracerOption { function Tags (line 22) | func Tags(tags map[string]string) TracerOption { function Logger (line 32) | func Logger(logger log.Logger) TracerOption { function AllowPropagation (line 47) | func AllowPropagation(propagate bool) TracerOption { function RequestSampler (line 55) | func RequestSampler(sampleFunc func(r *http.Request) bool) TracerOption { type tracerOptions (line 61) | type tracerOptions struct FILE: transport/amqp/encode_decode.go type DecodeRequestFunc (line 11) | type DecodeRequestFunc type EncodeRequestFunc (line 15) | type EncodeRequestFunc type EncodeResponseFunc (line 19) | type EncodeResponseFunc type DecodeResponseFunc (line 23) | type DecodeResponseFunc FILE: transport/amqp/publisher.go constant maxCorrelationIdLength (line 13) | maxCorrelationIdLength = 255 type Publisher (line 17) | type Publisher struct method Endpoint (line 77) | func (p Publisher) Endpoint() endpoint.Endpoint { function NewPublisher (line 29) | func NewPublisher( type PublisherOption (line 51) | type PublisherOption function PublisherBefore (line 55) | func PublisherBefore(before ...RequestFunc) PublisherOption { function PublisherAfter (line 62) | func PublisherAfter(after ...PublisherResponseFunc) PublisherOption { function PublisherDeliverer (line 67) | func PublisherDeliverer(deliverer Deliverer) PublisherOption { function PublisherTimeout (line 72) | func PublisherTimeout(timeout time.Duration) PublisherOption { type Deliverer (line 115) | type Deliverer function DefaultDeliverer (line 124) | func DefaultDeliverer( function SendAndForgetDeliverer (line 175) | func SendAndForgetDeliverer( FILE: transport/amqp/publisher_test.go function TestBadEncode (line 20) | func TestBadEncode(t *testing.T) { function TestBadDecode (line 52) | func TestBadDecode(t *testing.T) { function TestPublisherTimeout (line 102) | func TestPublisherTimeout(t *testing.T) { function TestSuccessfulPublisher (line 144) | func TestSuccessfulPublisher(t *testing.T) { function TestSendAndForgetPublisher (line 229) | func TestSendAndForgetPublisher(t *testing.T) { FILE: transport/amqp/request_response_func.go type RequestFunc (line 13) | type RequestFunc type SubscriberResponseFunc (line 18) | type SubscriberResponseFunc type PublisherResponseFunc (line 27) | type PublisherResponseFunc function SetPublishExchange (line 31) | func SetPublishExchange(publishExchange string) RequestFunc { function SetPublishKey (line 39) | func SetPublishKey(publishKey string) RequestFunc { function SetPublishDeliveryMode (line 47) | func SetPublishDeliveryMode(dmode uint8) RequestFunc { function SetNackSleepDuration (line 59) | func SetNackSleepDuration(duration time.Duration) RequestFunc { function SetConsumeAutoAck (line 70) | func SetConsumeAutoAck(autoAck bool) RequestFunc { function SetConsumeArgs (line 79) | func SetConsumeArgs(args amqp.Table) RequestFunc { function SetContentType (line 87) | func SetContentType(contentType string) RequestFunc { function SetContentEncoding (line 96) | func SetContentEncoding(contentEncoding string) RequestFunc { function SetCorrelationID (line 105) | func SetCorrelationID(cid string) RequestFunc { function SetAckAfterEndpoint (line 116) | func SetAckAfterEndpoint(multiple bool) SubscriberResponseFunc { function getPublishExchange (line 127) | func getPublishExchange(ctx context.Context) string { function getPublishKey (line 134) | func getPublishKey(ctx context.Context) string { function getNackSleepDuration (line 141) | func getNackSleepDuration(ctx context.Context) time.Duration { function getConsumeAutoAck (line 148) | func getConsumeAutoAck(ctx context.Context) bool { function getConsumeArgs (line 155) | func getConsumeArgs(ctx context.Context) amqp.Table { type contextKey (line 162) | type contextKey constant ContextKeyExchange (line 167) | ContextKeyExchange contextKey = iota constant ContextKeyPublishKey (line 170) | ContextKeyPublishKey constant ContextKeyNackSleepDuration (line 175) | ContextKeyNackSleepDuration constant ContextKeyAutoAck (line 178) | ContextKeyAutoAck constant ContextKeyConsumeArgs (line 181) | ContextKeyConsumeArgs FILE: transport/amqp/subscriber.go type Subscriber (line 15) | type Subscriber struct method ServeDelivery (line 98) | func (s Subscriber) ServeDelivery(ch Channel) func(deliv *amqp.Deliver... function NewSubscriber (line 28) | func NewSubscriber( type SubscriberOption (line 49) | type SubscriberOption function SubscriberBefore (line 53) | func SubscriberBefore(before ...RequestFunc) SubscriberOption { function SubscriberAfter (line 59) | func SubscriberAfter(after ...SubscriberResponseFunc) SubscriberOption { function SubscriberResponsePublisher (line 66) | func SubscriberResponsePublisher(rp ResponsePublisher) SubscriberOption { function SubscriberErrorEncoder (line 74) | func SubscriberErrorEncoder(ee ErrorEncoder) SubscriberOption { function SubscriberErrorLogger (line 83) | func SubscriberErrorLogger(logger log.Logger) SubscriberOption { function SubscriberErrorHandler (line 91) | func SubscriberErrorHandler(errorHandler transport.ErrorHandler) Subscri... function EncodeJSONResponse (line 144) | func EncodeJSONResponse( function EncodeNopResponse (line 158) | func EncodeNopResponse( type ResponsePublisher (line 171) | type ResponsePublisher function DefaultResponsePublisher (line 180) | func DefaultResponsePublisher( function NopResponsePublisher (line 208) | func NopResponsePublisher( type ErrorEncoder (line 221) | type ErrorEncoder function DefaultErrorEncoder (line 226) | func DefaultErrorEncoder(ctx context.Context, function SingleNackRequeueErrorEncoder (line 232) | func SingleNackRequeueErrorEncoder(ctx context.Context, function ReplyErrorEncoder (line 244) | func ReplyErrorEncoder( function ReplyAndAckErrorEncoder (line 282) | func ReplyAndAckErrorEncoder(ctx context.Context, err error, deliv *amqp... type DefaultErrorResponse (line 289) | type DefaultErrorResponse struct type Channel (line 295) | type Channel interface FILE: transport/amqp/subscriber_test.go type mockChannel (line 19) | type mockChannel struct method Publish (line 26) | func (ch *mockChannel) Publish(exchange, key string, mandatory, immedi... method Consume (line 35) | func (ch *mockChannel) Consume(queue, consumer string, autoAck, exclus... function TestSubscriberBadDecode (line 44) | func TestSubscriberBadDecode(t *testing.T) { function TestSubscriberBadEndpoint (line 76) | func TestSubscriberBadEndpoint(t *testing.T) { function TestSubscriberBadEncoder (line 110) | func TestSubscriberBadEncoder(t *testing.T) { function TestSubscriberSuccess (line 145) | func TestSubscriberSuccess(t *testing.T) { function TestNopResponseSubscriber (line 221) | func TestNopResponseSubscriber(t *testing.T) { function TestSubscriberMultipleBefore (line 260) | func TestSubscriberMultipleBefore(t *testing.T) { function TestDefaultContentMetaData (line 327) | func TestDefaultContentMetaData(t *testing.T) { function decodeSubscriberError (line 369) | func decodeSubscriberError(pub amqp.Publishing) (amqptransport.DefaultEr... type testReq (line 375) | type testReq struct type testRes (line 378) | type testRes struct function testEndpoint (line 383) | func testEndpoint(_ context.Context, request interface{}) (interface{}, ... function testReqDecoder (line 399) | func testReqDecoder(_ context.Context, d *amqp.Delivery) (interface{}, e... function testReqEncoder (line 405) | func testReqEncoder(_ context.Context, p *amqp.Publishing, request inter... function testResDeliveryDecoder (line 418) | func testResDeliveryDecoder(_ context.Context, d *amqp.Delivery) (interf... function testResDecoder (line 422) | func testResDecoder(b []byte) (interface{}, error) { FILE: transport/amqp/util.go function randomString (line 7) | func randomString(l int) string { function randInt (line 15) | func randInt(min int, max int) int { FILE: transport/awslambda/encode_decode.go type DecodeRequestFunc (line 9) | type DecodeRequestFunc type EncodeResponseFunc (line 13) | type EncodeResponseFunc type ErrorEncoder (line 16) | type ErrorEncoder FILE: transport/awslambda/handler.go type Handler (line 12) | type Handler struct method Invoke (line 90) | func (h *Handler) Invoke( function NewHandler (line 25) | func NewHandler( type HandlerOption (line 45) | type HandlerOption function HandlerBefore (line 49) | func HandlerBefore(before ...HandlerRequestFunc) HandlerOption { function HandlerAfter (line 55) | func HandlerAfter(after ...HandlerResponseFunc) HandlerOption { function HandlerErrorLogger (line 62) | func HandlerErrorLogger(logger log.Logger) HandlerOption { function HandlerErrorHandler (line 68) | func HandlerErrorHandler(errorHandler transport.ErrorHandler) HandlerOpt... function HandlerErrorEncoder (line 73) | func HandlerErrorEncoder(ee ErrorEncoder) HandlerOption { function HandlerFinalizer (line 79) | func HandlerFinalizer(f ...HandlerFinalizerFunc) HandlerOption { function DefaultErrorEncoder (line 85) | func DefaultErrorEncoder(ctx context.Context, err error) ([]byte, error) { FILE: transport/awslambda/handler_test.go type key (line 14) | type key constant KeyBeforeOne (line 17) | KeyBeforeOne key = iota constant KeyBeforeTwo (line 18) | KeyBeforeTwo key = iota constant KeyAfterOne (line 19) | KeyAfterOne key = iota constant KeyEncMode (line 20) | KeyEncMode key = iota type apiGatewayProxyRequest (line 24) | type apiGatewayProxyRequest struct type apiGatewayProxyResponse (line 29) | type apiGatewayProxyResponse struct function TestDefaultErrorEncoder (line 34) | func TestDefaultErrorEncoder(t *testing.T) { function TestInvokeHappyPath (line 46) | func TestInvokeHappyPath(t *testing.T) { function TestInvokeFailDecode (line 138) | func TestInvokeFailDecode(t *testing.T) { function TestInvokeFailEndpoint (line 174) | func TestInvokeFailEndpoint(t *testing.T) { function TestInvokeFailEncode (line 224) | func TestInvokeFailEncode(t *testing.T) { function decodeHelloRequestWithTwoBefores (line 282) | func decodeHelloRequestWithTwoBefores( function encodeResponse (line 313) | func encodeResponse( type helloRequest (line 335) | type helloRequest struct type helloResponse (line 339) | type helloResponse struct function makeTest01HelloEndpoint (line 343) | func makeTest01HelloEndpoint(svc serviceTest01) endpoint.Endpoint { function makeTest01FailEndpoint (line 351) | func makeTest01FailEndpoint(_ serviceTest01) endpoint.Endpoint { type serviceTest01 (line 357) | type serviceTest01 struct method hello (line 359) | func (ts *serviceTest01) hello(name string) string { FILE: transport/awslambda/request_response_funcs.go type HandlerRequestFunc (line 11) | type HandlerRequestFunc type HandlerResponseFunc (line 17) | type HandlerResponseFunc type HandlerFinalizerFunc (line 21) | type HandlerFinalizerFunc FILE: transport/error_handler.go type ErrorHandler (line 11) | type ErrorHandler interface type LogErrorHandler (line 16) | type LogErrorHandler struct method Handle (line 26) | func (h *LogErrorHandler) Handle(ctx context.Context, err error) { function NewLogErrorHandler (line 20) | func NewLogErrorHandler(logger log.Logger) *LogErrorHandler { type ErrorHandlerFunc (line 34) | type ErrorHandlerFunc method Handle (line 37) | func (f ErrorHandlerFunc) Handle(ctx context.Context, err error) { FILE: transport/error_handler_test.go function TestLogErrorHandler (line 12) | func TestLogErrorHandler(t *testing.T) { FILE: transport/grpc/_grpc_test/client.go type clientBinding (line 13) | type clientBinding struct method Test (line 17) | func (c *clientBinding) Test(ctx context.Context, a string, b int64) (... function NewClient (line 26) | func NewClient(cc *grpc.ClientConn) Service { FILE: transport/grpc/_grpc_test/context_metadata.go type metaContext (line 10) | type metaContext constant correlationID (line 13) | correlationID metaContext = "correlation-id" constant responseHDR (line 14) | responseHDR metaContext = "my-response-header" constant responseTRLR (line 15) | responseTRLR metaContext = "my-response-trailer" constant correlationIDTRLR (line 16) | correlationIDTRLR metaContext = "correlation-id-consumed" function injectCorrelationID (line 21) | func injectCorrelationID(ctx context.Context, md *metadata.MD) context.C... function displayClientRequestHeaders (line 29) | func displayClientRequestHeaders(ctx context.Context, md *metadata.MD) c... function extractCorrelationID (line 41) | func extractCorrelationID(ctx context.Context, md metadata.MD) context.C... function displayServerRequestHeaders (line 50) | func displayServerRequestHeaders(ctx context.Context, md metadata.MD) co... function injectResponseHeader (line 62) | func injectResponseHeader(ctx context.Context, md *metadata.MD, _ *metad... function displayServerResponseHeaders (line 67) | func displayServerResponseHeaders(ctx context.Context, md *metadata.MD, ... function injectResponseTrailer (line 77) | func injectResponseTrailer(ctx context.Context, _ *metadata.MD, md *meta... function injectConsumedCorrelationID (line 82) | func injectConsumedCorrelationID(ctx context.Context, _ *metadata.MD, md... function displayServerResponseTrailers (line 90) | func displayServerResponseTrailers(ctx context.Context, _ *metadata.MD, ... function displayClientResponseHeaders (line 102) | func displayClientResponseHeaders(ctx context.Context, md metadata.MD, _... function displayClientResponseTrailers (line 112) | func displayClientResponseTrailers(ctx context.Context, _ metadata.MD, m... function extractConsumedCorrelationID (line 122) | func extractConsumedCorrelationID(ctx context.Context, _ metadata.MD, md... function SetCorrelationID (line 132) | func SetCorrelationID(ctx context.Context, v string) context.Context { function GetConsumedCorrelationID (line 136) | func GetConsumedCorrelationID(ctx context.Context) string { FILE: transport/grpc/_grpc_test/pb/test.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type TestRequest (line 23) | type TestRequest struct method Reset (line 32) | func (x *TestRequest) Reset() { method String (line 41) | func (x *TestRequest) String() string { method ProtoMessage (line 45) | func (*TestRequest) ProtoMessage() {} method ProtoReflect (line 47) | func (x *TestRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*TestRequest) Descriptor() ([]byte, []int) { method GetA (line 64) | func (x *TestRequest) GetA() string { method GetB (line 71) | func (x *TestRequest) GetB() int64 { type TestResponse (line 78) | type TestResponse struct method Reset (line 86) | func (x *TestResponse) Reset() { method String (line 95) | func (x *TestResponse) String() string { method ProtoMessage (line 99) | func (*TestResponse) ProtoMessage() {} method ProtoReflect (line 101) | func (x *TestResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*TestResponse) Descriptor() ([]byte, []int) { method GetV (line 118) | func (x *TestResponse) GetV() string { function file_test_proto_rawDescGZIP (line 145) | func file_test_proto_rawDescGZIP() []byte { function init (line 167) | func init() { file_test_proto_init() } function file_test_proto_init (line 168) | func file_test_proto_init() { FILE: transport/grpc/_grpc_test/pb/test_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type TestClient (line 20) | type TestClient interface type testClient (line 24) | type testClient struct method Test (line 32) | func (c *testClient) Test(ctx context.Context, in *TestRequest, opts .... function NewTestClient (line 28) | func NewTestClient(cc grpc.ClientConnInterface) TestClient { type TestServer (line 44) | type TestServer interface type UnimplementedTestServer (line 50) | type UnimplementedTestServer struct method Test (line 53) | func (UnimplementedTestServer) Test(context.Context, *TestRequest) (*T... method mustEmbedUnimplementedTestServer (line 56) | func (UnimplementedTestServer) mustEmbedUnimplementedTestServer() {} type UnsafeTestServer (line 61) | type UnsafeTestServer interface function RegisterTestServer (line 65) | func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer) { function _Test_Test_Handler (line 69) | func _Test_Test_Handler(srv interface{}, ctx context.Context, dec func(i... FILE: transport/grpc/_grpc_test/request_response.go function encodeRequest (line 9) | func encodeRequest(ctx context.Context, req interface{}) (interface{}, e... function decodeRequest (line 14) | func decodeRequest(ctx context.Context, req interface{}) (interface{}, e... function encodeResponse (line 19) | func encodeResponse(ctx context.Context, resp interface{}) (interface{},... function decodeResponse (line 24) | func decodeResponse(ctx context.Context, resp interface{}) (interface{},... FILE: transport/grpc/_grpc_test/server.go type service (line 12) | type service struct method Test (line 14) | func (service) Test(ctx context.Context, a string, b int64) (context.C... function NewService (line 18) | func NewService() Service { function makeTestEndpoint (line 22) | func makeTestEndpoint(svc Service) endpoint.Endpoint { type serverBinding (line 33) | type serverBinding struct method Test (line 39) | func (b *serverBinding) Test(ctx context.Context, req *pb.TestRequest)... function NewBinding (line 47) | func NewBinding(svc Service) *serverBinding { FILE: transport/grpc/_grpc_test/service.go type Service (line 5) | type Service interface type TestRequest (line 9) | type TestRequest struct type TestResponse (line 14) | type TestResponse struct FILE: transport/grpc/client.go type Client (line 16) | type Client struct method Endpoint (line 87) | func (c Client) Endpoint() endpoint.Endpoint { function NewClient (line 31) | func NewClient( type ClientOption (line 64) | type ClientOption function ClientBefore (line 68) | func ClientBefore(before ...ClientRequestFunc) ClientOption { function ClientAfter (line 75) | func ClientAfter(after ...ClientResponseFunc) ClientOption { function ClientFinalizer (line 81) | func ClientFinalizer(f ...ClientFinalizerFunc) ClientOption { type ClientFinalizerFunc (line 140) | type ClientFinalizerFunc FILE: transport/grpc/client_test.go constant hostPort (line 16) | hostPort string = "localhost:8002" function TestGRPCClient (line 19) | func TestGRPCClient(t *testing.T) { FILE: transport/grpc/encode_decode.go type DecodeRequestFunc (line 11) | type DecodeRequestFunc type EncodeRequestFunc (line 17) | type EncodeRequestFunc type EncodeResponseFunc (line 23) | type EncodeResponseFunc type DecodeResponseFunc (line 29) | type DecodeResponseFunc FILE: transport/grpc/request_response_funcs.go constant binHdrSuffix (line 12) | binHdrSuffix = "-bin" type ClientRequestFunc (line 19) | type ClientRequestFunc type ServerRequestFunc (line 24) | type ServerRequestFunc type ServerResponseFunc (line 30) | type ServerResponseFunc type ClientResponseFunc (line 36) | type ClientResponseFunc function SetRequestHeader (line 40) | func SetRequestHeader(key, val string) ClientRequestFunc { function SetResponseHeader (line 50) | func SetResponseHeader(key, val string) ServerResponseFunc { function SetResponseTrailer (line 60) | func SetResponseTrailer(key, val string) ServerResponseFunc { function EncodeKeyValue (line 69) | func EncodeKeyValue(key, val string) (string, string) { type contextKey (line 77) | type contextKey constant ContextKeyRequestMethod (line 80) | ContextKeyRequestMethod contextKey = iota FILE: transport/grpc/server.go type Handler (line 17) | type Handler interface type Server (line 22) | type Server struct method ServeGRPC (line 90) | func (s Server) ServeGRPC(ctx context.Context, req interface{}) (retct... function NewServer (line 37) | func NewServer( type ServerOption (line 56) | type ServerOption function ServerBefore (line 60) | func ServerBefore(before ...ServerRequestFunc) ServerOption { function ServerAfter (line 66) | func ServerAfter(after ...ServerResponseFunc) ServerOption { function ServerErrorLogger (line 73) | func ServerErrorLogger(logger log.Logger) ServerOption { function ServerErrorHandler (line 79) | func ServerErrorHandler(errorHandler transport.ErrorHandler) ServerOption { function ServerFinalizer (line 85) | func ServerFinalizer(f ...ServerFinalizerFunc) ServerOption { type ServerFinalizerFunc (line 157) | type ServerFinalizerFunc function Interceptor (line 163) | func Interceptor( FILE: transport/http/client.go type HTTPClient (line 17) | type HTTPClient interface type Client (line 22) | type Client struct method Endpoint (line 90) | func (c Client) Endpoint() endpoint.Endpoint { function NewClient (line 33) | func NewClient(method string, tgt *url.URL, enc EncodeRequestFunc, dec D... function NewExplicitClient (line 40) | func NewExplicitClient(req CreateRequestFunc, dec DecodeResponseFunc, op... type ClientOption (line 53) | type ClientOption function SetClient (line 57) | func SetClient(client HTTPClient) ClientOption { function ClientBefore (line 63) | func ClientBefore(before ...RequestFunc) ClientOption { function ClientAfter (line 71) | func ClientAfter(after ...ClientResponseFunc) ClientOption { function ClientFinalizer (line 78) | func ClientFinalizer(f ...ClientFinalizerFunc) ClientOption { function BufferedStream (line 85) | func BufferedStream(buffered bool) ClientOption { type bodyWithCancel (line 151) | type bodyWithCancel struct method Close (line 157) | func (bwc bodyWithCancel) Close() error { type ClientFinalizerFunc (line 169) | type ClientFinalizerFunc function EncodeJSONRequest (line 175) | func EncodeJSONRequest(c context.Context, r *http.Request, request inter... function EncodeXMLRequest (line 190) | func EncodeXMLRequest(c context.Context, r *http.Request, request interf... function makeCreateRequestFunc (line 206) | func makeCreateRequestFunc(method string, target *url.URL, enc EncodeReq... FILE: transport/http/client_test.go type TestResponse (line 19) | type TestResponse struct function TestHTTPClient (line 24) | func TestHTTPClient(t *testing.T) { function TestHTTPClientBufferedStream (line 102) | func TestHTTPClientBufferedStream(t *testing.T) { function TestClientFinalizer (line 153) | func TestClientFinalizer(t *testing.T) { function TestEncodeJSONRequest (line 203) | func TestEncodeJSONRequest(t *testing.T) { function TestSetClient (line 265) | func TestSetClient(t *testing.T) { function TestNewExplicitClient (line 302) | func TestNewExplicitClient(t *testing.T) { function mustParse (line 332) | func mustParse(s string) *url.URL { type enhancedRequest (line 340) | type enhancedRequest struct method Headers (line 344) | func (e enhancedRequest) Headers() http.Header { return http.Header{"X... type httpClientFunc (line 346) | type httpClientFunc method Do (line 348) | func (f httpClientFunc) Do(req *http.Request) (*http.Response, error) { FILE: transport/http/encode_decode.go type DecodeRequestFunc (line 12) | type DecodeRequestFunc type EncodeRequestFunc (line 18) | type EncodeRequestFunc type CreateRequestFunc (line 24) | type CreateRequestFunc type EncodeResponseFunc (line 30) | type EncodeResponseFunc type DecodeResponseFunc (line 36) | type DecodeResponseFunc FILE: transport/http/example_test.go function ExamplePopulateRequestContext (line 10) | func ExamplePopulateRequestContext() { FILE: transport/http/intercepting_writer.go type interceptingWriter (line 8) | type interceptingWriter struct method WriteHeader (line 16) | func (w *interceptingWriter) WriteHeader(code int) { method Write (line 21) | func (w *interceptingWriter) Write(p []byte) (int, error) { method reimplementInterfaces (line 34) | func (w *interceptingWriter) reimplementInterfaces() http.ResponseWrit... FILE: transport/http/intercepting_writer_test.go type versatileWriter (line 11) | type versatileWriter struct method Flush (line 20) | func (v *versatileWriter) Flush() { v.flushCalled = true } method Push (line 21) | func (v *versatileWriter) Push(target string, opts *http.PushOptions) ... method ReadFrom (line 25) | func (v *versatileWriter) ReadFrom(r io.Reader) (n int64, err error) { method CloseNotify (line 29) | func (v *versatileWriter) CloseNotify() <-chan bool { v.closeNotifyCal... method Hijack (line 30) | func (v *versatileWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { function TestInterceptingWriter_passthroughs (line 35) | func TestInterceptingWriter_passthroughs(t *testing.T) { function TestInterceptingWriter_reimplementInterfaces (line 63) | func TestInterceptingWriter_reimplementInterfaces(t *testing.T) { FILE: transport/http/jsonrpc/client.go type Client (line 17) | type Client struct method Endpoint (line 143) | func (c Client) Endpoint() endpoint.Endpoint { type clientRequest (line 35) | type clientRequest struct function NewClient (line 43) | func NewClient( function DefaultRequestEncoder (line 66) | func DefaultRequestEncoder(_ context.Context, req interface{}) (json.Raw... function DefaultResponseDecoder (line 72) | func DefaultResponseDecoder(_ context.Context, res Response) (interface{... type ClientOption (line 85) | type ClientOption function SetClient (line 89) | func SetClient(client httptransport.HTTPClient) ClientOption { function ClientBefore (line 95) | func ClientBefore(before ...httptransport.RequestFunc) ClientOption { function ClientAfter (line 102) | func ClientAfter(after ...httptransport.ClientResponseFunc) ClientOption { function ClientFinalizer (line 108) | func ClientFinalizer(f httptransport.ClientFinalizerFunc) ClientOption { function ClientRequestEncoder (line 114) | func ClientRequestEncoder(enc EncodeRequestFunc) ClientOption { function ClientResponseDecoder (line 120) | func ClientResponseDecoder(dec DecodeResponseFunc) ClientOption { type RequestIDGenerator (line 125) | type RequestIDGenerator interface function ClientRequestIDGenerator (line 132) | func ClientRequestIDGenerator(g RequestIDGenerator) ClientOption { function BufferedStream (line 138) | func BufferedStream(buffered bool) ClientOption { type ClientFinalizerFunc (line 227) | type ClientFinalizerFunc type autoIncrementID (line 231) | type autoIncrementID struct method Generate (line 244) | func (i *autoIncrementID) Generate() interface{} { function NewAutoIncrementID (line 237) | func NewAutoIncrementID(init uint64) RequestIDGenerator { FILE: transport/http/jsonrpc/client_test.go type TestResponse (line 16) | type TestResponse struct type testServerResponseOptions (line 21) | type testServerResponseOptions struct function httptestServer (line 26) | func httptestServer(t *testing.T) *httptest.Server { function TestBeforeAfterFuncs (line 49) | func TestBeforeAfterFuncs(t *testing.T) { type staticIDGenerator (line 124) | type staticIDGenerator method Generate (line 126) | func (g staticIDGenerator) Generate() interface{} { return g } function TestClientHappyPath (line 128) | func TestClientHappyPath(t *testing.T) { function TestCanUseDefaults (line 242) | func TestCanUseDefaults(t *testing.T) { function TestClientCanHandleJSONRPCError (line 302) | func TestClientCanHandleJSONRPCError(t *testing.T) { function TestDefaultAutoIncrementer (line 350) | func TestDefaultAutoIncrementer(t *testing.T) { function mustParse (line 363) | func mustParse(s string) *url.URL { FILE: transport/http/jsonrpc/encode_decode.go type EndpointCodec (line 14) | type EndpointCodec struct type EndpointCodecMap (line 21) | type EndpointCodecMap type DecodeRequestFunc (line 27) | type DecodeRequestFunc type EncodeResponseFunc (line 33) | type EncodeResponseFunc type EncodeRequestFunc (line 41) | type EncodeRequestFunc type DecodeResponseFunc (line 48) | type DecodeResponseFunc FILE: transport/http/jsonrpc/error.go type Error (line 6) | type Error struct method Error (line 13) | func (e Error) Error() string { method ErrorCode (line 21) | func (e Error) ErrorCode() int { constant ParseError (line 28) | ParseError int = -32700 constant InvalidRequestError (line 31) | InvalidRequestError int = -32600 constant MethodNotFoundError (line 34) | MethodNotFoundError int = -32601 constant InvalidParamsError (line 37) | InvalidParamsError int = -32602 constant InternalError (line 40) | InternalError int = -32603 function ErrorMessage (line 53) | func ErrorMessage(code int) string { type parseError (line 57) | type parseError method Error (line 59) | func (e parseError) Error() string { method ErrorCode (line 62) | func (e parseError) ErrorCode() int { type invalidRequestError (line 66) | type invalidRequestError method Error (line 68) | func (e invalidRequestError) Error() string { method ErrorCode (line 71) | func (e invalidRequestError) ErrorCode() int { type methodNotFoundError (line 75) | type methodNotFoundError method Error (line 77) | func (e methodNotFoundError) Error() string { method ErrorCode (line 80) | func (e methodNotFoundError) ErrorCode() int { type invalidParamsError (line 84) | type invalidParamsError method Error (line 86) | func (e invalidParamsError) Error() string { method ErrorCode (line 89) | func (e invalidParamsError) ErrorCode() int { type internalError (line 93) | type internalError method Error (line 95) | func (e internalError) Error() string { method ErrorCode (line 98) | func (e internalError) ErrorCode() int { FILE: transport/http/jsonrpc/error_test.go function TestError (line 5) | func TestError(t *testing.T) { function TestErrorsSatisfyError (line 28) | func TestErrorsSatisfyError(t *testing.T) { FILE: transport/http/jsonrpc/request_response_types.go type Request (line 11) | type Request struct type RequestID (line 24) | type RequestID struct method UnmarshalJSON (line 39) | func (id *RequestID) UnmarshalJSON(b []byte) error { method MarshalJSON (line 47) | func (id *RequestID) MarshalJSON() ([]byte, error) { method Int (line 59) | func (id *RequestID) Int() (int, error) { method Float32 (line 65) | func (id *RequestID) Float32() (float32, error) { method String (line 71) | func (id *RequestID) String() (string, error) { type RequestFunc (line 36) | type RequestFunc type Response (line 77) | type Response struct constant Version (line 86) | Version string = "2.0" constant ContentType (line 89) | ContentType string = "application/json; charset=utf-8" type contextKey (line 92) | type contextKey constant ContextKeyRequestMethod (line 95) | ContextKeyRequestMethod contextKey = iota FILE: transport/http/jsonrpc/request_response_types_test.go function TestCanUnMarshalID (line 11) | func TestCanUnMarshalID(t *testing.T) { function TestCanUnmarshalNullID (line 100) | func TestCanUnmarshalNullID(t *testing.T) { function TestCanMarshalID (line 113) | func TestCanMarshalID(t *testing.T) { FILE: transport/http/jsonrpc/server.go type requestIDKeyType (line 14) | type requestIDKeyType struct type Server (line 19) | type Server struct method ServeHTTP (line 92) | func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServer (line 30) | func NewServer( type ServerOption (line 46) | type ServerOption function ServerBefore (line 50) | func ServerBefore(before ...httptransport.RequestFunc) ServerOption { function ServerBeforeCodec (line 58) | func ServerBeforeCodec(beforeCodec ...RequestFunc) ServerOption { function ServerAfter (line 64) | func ServerAfter(after ...httptransport.ServerResponseFunc) ServerOption { function ServerErrorEncoder (line 72) | func ServerErrorEncoder(ee httptransport.ErrorEncoder) ServerOption { function ServerErrorLogger (line 81) | func ServerErrorLogger(logger log.Logger) ServerOption { function ServerFinalizer (line 87) | func ServerFinalizer(f httptransport.ServerFinalizerFunc) ServerOption { function DefaultErrorEncoder (line 183) | func DefaultErrorEncoder(ctx context.Context, err error, w http.Response... type ErrorCoder (line 217) | type ErrorCoder interface type interceptingWriter (line 223) | type interceptingWriter struct method WriteHeader (line 230) | func (w *interceptingWriter) WriteHeader(code int) { FILE: transport/http/jsonrpc/server_test.go function addBody (line 19) | func addBody() io.Reader { function body (line 23) | func body(in string) io.Reader { function unmarshalResponse (line 27) | func unmarshalResponse(body []byte) (resp jsonrpc.Response, err error) { function expectErrorCode (line 32) | func expectErrorCode(t *testing.T, want int, body []byte) { function expectValidRequestID (line 47) | func expectValidRequestID(t *testing.T, want int, body []byte) { function expectNilRequestID (line 63) | func expectNilRequestID(t *testing.T, body []byte) { function nopDecoder (line 75) | func nopDecoder(context.Context, json.RawMessage) (interface{}, error) {... function nopEncoder (line 76) | func nopEncoder(context.Context, interface{}) (json.RawMessage, error) {... type mockLogger (line 78) | type mockLogger struct method Log (line 83) | func (l *mockLogger) Log(keyvals ...interface{}) error { function TestServerBadDecode (line 89) | func TestServerBadDecode(t *testing.T) { function TestServerBadEndpoint (line 112) | func TestServerBadEndpoint(t *testing.T) { function TestServerBadEncode (line 132) | func TestServerBadEncode(t *testing.T) { function TestServerErrorEncoder (line 152) | func TestServerErrorEncoder(t *testing.T) { function TestCanRejectNonPostRequest (line 179) | func TestCanRejectNonPostRequest(t *testing.T) { function TestCanRejectInvalidJSON (line 190) | func TestCanRejectInvalidJSON(t *testing.T) { function TestServerUnregisteredMethod (line 204) | func TestServerUnregisteredMethod(t *testing.T) { function TestServerHappyPath (line 217) | func TestServerHappyPath(t *testing.T) { function TestMultipleServerBeforeCodec (line 238) | func TestMultipleServerBeforeCodec(t *testing.T) { function TestMultipleServerBefore (line 274) | func TestMultipleServerBefore(t *testing.T) { function TestMultipleServerAfter (line 310) | func TestMultipleServerAfter(t *testing.T) { function TestCanFinalize (line 346) | func TestCanFinalize(t *testing.T) { function testServer (line 378) | func testServer(t *testing.T) (step func(), resp <-chan *http.Response) { FILE: transport/http/proto/client.go function EncodeProtoRequest (line 18) | func EncodeProtoRequest(_ context.Context, r *http.Request, preq interfa... FILE: transport/http/proto/proto_pb_test.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Cat (line 23) | type Cat struct method Reset (line 33) | func (x *Cat) Reset() { method String (line 42) | func (x *Cat) String() string { method ProtoMessage (line 46) | func (*Cat) ProtoMessage() {} method ProtoReflect (line 48) | func (x *Cat) ProtoReflect() protoreflect.Message { method Descriptor (line 61) | func (*Cat) Descriptor() ([]byte, []int) { method GetAge (line 65) | func (x *Cat) GetAge() int32 { method GetBreed (line 72) | func (x *Cat) GetBreed() string { method GetName (line 79) | func (x *Cat) GetName() string { function file_proto_test_proto_rawDescGZIP (line 102) | func file_proto_test_proto_rawDescGZIP() []byte { function init (line 121) | func init() { file_proto_test_proto_init() } function file_proto_test_proto_init (line 122) | func file_proto_test_proto_init() { FILE: transport/http/proto/proto_test.go function TestEncodeProtoRequest (line 13) | func TestEncodeProtoRequest(t *testing.T) { function TestEncodeProtoResponse (line 50) | func TestEncodeProtoResponse(t *testing.T) { method StatusCode (line 94) | func (c *Cat) StatusCode() int { FILE: transport/http/proto/server.go function EncodeProtoResponse (line 16) | func EncodeProtoResponse(ctx context.Context, w http.ResponseWriter, pre... FILE: transport/http/request_response_funcs.go type RequestFunc (line 12) | type RequestFunc type ServerResponseFunc (line 17) | type ServerResponseFunc type ClientResponseFunc (line 22) | type ClientResponseFunc function SetContentType (line 26) | func SetContentType(contentType string) ServerResponseFunc { function SetResponseHeader (line 31) | func SetResponseHeader(key, val string) ServerResponseFunc { function SetRequestHeader (line 39) | func SetRequestHeader(key, val string) RequestFunc { function PopulateRequestContext (line 49) | func PopulateRequestContext(ctx context.Context, r *http.Request) contex... type contextKey (line 70) | type contextKey constant ContextKeyRequestMethod (line 75) | ContextKeyRequestMethod contextKey = iota constant ContextKeyRequestURI (line 79) | ContextKeyRequestURI constant ContextKeyRequestPath (line 83) | ContextKeyRequestPath constant ContextKeyRequestProto (line 87) | ContextKeyRequestProto constant ContextKeyRequestHost (line 91) | ContextKeyRequestHost constant ContextKeyRequestRemoteAddr (line 95) | ContextKeyRequestRemoteAddr constant ContextKeyRequestXForwardedFor (line 99) | ContextKeyRequestXForwardedFor constant ContextKeyRequestXForwardedProto (line 103) | ContextKeyRequestXForwardedProto constant ContextKeyRequestAuthorization (line 107) | ContextKeyRequestAuthorization constant ContextKeyRequestReferer (line 111) | ContextKeyRequestReferer constant ContextKeyRequestUserAgent (line 115) | ContextKeyRequestUserAgent constant ContextKeyRequestXRequestID (line 119) | ContextKeyRequestXRequestID constant ContextKeyRequestAccept (line 123) | ContextKeyRequestAccept constant ContextKeyResponseHeaders (line 128) | ContextKeyResponseHeaders constant ContextKeyResponseSize (line 132) | ContextKeyResponseSize FILE: transport/http/request_response_funcs_test.go function TestSetHeader (line 11) | func TestSetHeader(t *testing.T) { function TestSetContentType (line 23) | func TestSetContentType(t *testing.T) { FILE: transport/http/server.go type Server (line 14) | type Server struct method ServeHTTP (line 95) | func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServer (line 27) | func NewServer( type ServerOption (line 47) | type ServerOption function ServerBefore (line 51) | func ServerBefore(before ...RequestFunc) ServerOption { function ServerAfter (line 57) | func ServerAfter(after ...ServerResponseFunc) ServerOption { function ServerErrorEncoder (line 65) | func ServerErrorEncoder(ee ErrorEncoder) ServerOption { function ServerErrorLogger (line 75) | func ServerErrorLogger(logger log.Logger) ServerOption { function ServerErrorHandler (line 84) | func ServerErrorHandler(errorHandler transport.ErrorHandler) ServerOption { function ServerFinalizer (line 90) | func ServerFinalizer(f ...ServerFinalizerFunc) ServerOption { type ErrorEncoder (line 143) | type ErrorEncoder type ServerFinalizerFunc (line 150) | type ServerFinalizerFunc function NopRequestDecoder (line 154) | func NopRequestDecoder(ctx context.Context, r *http.Request) (interface{... function EncodeJSONResponse (line 163) | func EncodeJSONResponse(_ context.Context, w http.ResponseWriter, respon... function DefaultErrorEncoder (line 190) | func DefaultErrorEncoder(_ context.Context, err error, w http.ResponseWr... type StatusCoder (line 216) | type StatusCoder interface type Headerer (line 223) | type Headerer interface FILE: transport/http/server_test.go function TestServerBadDecode (line 17) | func TestServerBadDecode(t *testing.T) { function TestServerBadEndpoint (line 31) | func TestServerBadEndpoint(t *testing.T) { function TestServerBadEncode (line 45) | func TestServerBadEncode(t *testing.T) { function TestServerErrorEncoder (line 59) | func TestServerErrorEncoder(t *testing.T) { function TestServerHappyPath (line 81) | func TestServerHappyPath(t *testing.T) { function TestMultipleServerBefore (line 92) | func TestMultipleServerBefore(t *testing.T) { function TestMultipleServerAfter (line 137) | func TestMultipleServerAfter(t *testing.T) { function TestServerFinalizer (line 182) | func TestServerFinalizer(t *testing.T) { type enhancedResponse (line 231) | type enhancedResponse struct method StatusCode (line 235) | func (e enhancedResponse) StatusCode() int { return http.StatusPa... method Headers (line 236) | func (e enhancedResponse) Headers() http.Header { return http.Header{"... function TestEncodeJSONResponse (line 238) | func TestEncodeJSONResponse(t *testing.T) { type multiHeaderResponse (line 264) | type multiHeaderResponse struct method Headers (line 266) | func (_ multiHeaderResponse) Headers() http.Header { function TestAddMultipleHeaders (line 270) | func TestAddMultipleHeaders(t *testing.T) { type multiHeaderResponseError (line 295) | type multiHeaderResponseError struct method Error (line 300) | func (m multiHeaderResponseError) Error() string { function TestAddMultipleHeadersErrorEncoder (line 304) | func TestAddMultipleHeadersErrorEncoder(t *testing.T) { type noContentResponse (line 335) | type noContentResponse struct method StatusCode (line 337) | func (e noContentResponse) StatusCode() int { return http.StatusNoCont... function TestEncodeNoContent (line 339) | func TestEncodeNoContent(t *testing.T) { type enhancedError (line 362) | type enhancedError struct method Error (line 364) | func (e enhancedError) Error() string { return "enhance... method StatusCode (line 365) | func (e enhancedError) StatusCode() int { return http.Sta... method MarshalJSON (line 366) | func (e enhancedError) MarshalJSON() ([]byte, error) { return []byte(`... method Headers (line 367) | func (e enhancedError) Headers() http.Header { return http.Hea... function TestEnhancedError (line 369) | func TestEnhancedError(t *testing.T) { function TestNoOpRequestDecoder (line 396) | func TestNoOpRequestDecoder(t *testing.T) { function testServer (line 418) | func testServer(t *testing.T) (step func(), resp <-chan *http.Response) { FILE: transport/httprp/server.go type RequestFunc (line 13) | type RequestFunc type Server (line 16) | type Server struct method ServeHTTP (line 49) | func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServer (line 26) | func NewServer( type ServerOption (line 40) | type ServerOption function ServerBefore (line 44) | func ServerBefore(before ...RequestFunc) ServerOption { FILE: transport/httprp/server_test.go function TestServerHappyPathSingleServer (line 14) | func TestServerHappyPathSingleServer(t *testing.T) { function TestServerHappyPathSingleServerWithServerOptions (line 39) | func TestServerHappyPathSingleServerWithServerOptions(t *testing.T) { function TestServerOriginServerNotFoundResponse (line 77) | func TestServerOriginServerNotFoundResponse(t *testing.T) { function TestServerOriginServerUnreachable (line 94) | func TestServerOriginServerUnreachable(t *testing.T) { function TestMultipleServerBefore (line 119) | func TestMultipleServerBefore(t *testing.T) { FILE: transport/nats/encode_decode.go type DecodeRequestFunc (line 13) | type DecodeRequestFunc type EncodeRequestFunc (line 19) | type EncodeRequestFunc type EncodeResponseFunc (line 25) | type EncodeResponseFunc type DecodeResponseFunc (line 31) | type DecodeResponseFunc FILE: transport/nats/publisher.go type Publisher (line 12) | type Publisher struct method Endpoint (line 65) | func (p Publisher) Endpoint() endpoint.Endpoint { function NewPublisher (line 23) | func NewPublisher( type PublisherOption (line 44) | type PublisherOption function PublisherBefore (line 48) | func PublisherBefore(before ...RequestFunc) PublisherOption { function PublisherAfter (line 55) | func PublisherAfter(after ...PublisherResponseFunc) PublisherOption { function PublisherTimeout (line 60) | func PublisherTimeout(timeout time.Duration) PublisherOption { function EncodeJSONRequest (line 101) | func EncodeJSONRequest(_ context.Context, msg *nats.Msg, request interfa... FILE: transport/nats/publisher_test.go function TestPublisher (line 13) | func TestPublisher(t *testing.T) { function TestPublisherBefore (line 58) | func TestPublisherBefore(t *testing.T) { function TestPublisherAfter (line 107) | func TestPublisherAfter(t *testing.T) { function TestPublisherTimeout (line 156) | func TestPublisherTimeout(t *testing.T) { function TestPublisherCancellation (line 193) | func TestPublisherCancellation(t *testing.T) { function TestEncodeJSONRequest (line 232) | func TestEncodeJSONRequest(t *testing.T) { FILE: transport/nats/request_response_funcs.go type RequestFunc (line 12) | type RequestFunc type SubscriberResponseFunc (line 17) | type SubscriberResponseFunc type PublisherResponseFunc (line 22) | type PublisherResponseFunc FILE: transport/nats/subscriber.go type Subscriber (line 15) | type Subscriber struct method ServeMsg (line 94) | func (s Subscriber) ServeMsg(nc *nats.Conn) func(msg *nats.Msg) { function NewSubscriber (line 28) | func NewSubscriber( type SubscriberOption (line 48) | type SubscriberOption function SubscriberBefore (line 52) | func SubscriberBefore(before ...RequestFunc) SubscriberOption { function SubscriberAfter (line 58) | func SubscriberAfter(after ...SubscriberResponseFunc) SubscriberOption { function SubscriberErrorEncoder (line 66) | func SubscriberErrorEncoder(ee ErrorEncoder) SubscriberOption { function SubscriberErrorLogger (line 75) | func SubscriberErrorLogger(logger log.Logger) SubscriberOption { function SubscriberErrorHandler (line 83) | func SubscriberErrorHandler(errorHandler transport.ErrorHandler) Subscri... function SubscriberFinalizer (line 89) | func SubscriberFinalizer(f ...SubscriberFinalizerFunc) SubscriberOption { type ErrorEncoder (line 151) | type ErrorEncoder type SubscriberFinalizerFunc (line 156) | type SubscriberFinalizerFunc function NopRequestDecoder (line 160) | func NopRequestDecoder(_ context.Context, _ *nats.Msg) (interface{}, err... function EncodeJSONResponse (line 167) | func EncodeJSONResponse(_ context.Context, reply string, nc *nats.Conn, ... function DefaultErrorEncoder (line 177) | func DefaultErrorEncoder(_ context.Context, err error, reply string, nc ... FILE: transport/nats/subscriber_test.go type TestResponse (line 19) | type TestResponse struct function newNATSConn (line 24) | func newNATSConn(t *testing.T) (*server.Server, *nats.Conn) { function TestSubscriberBadDecode (line 57) | func TestSubscriberBadDecode(t *testing.T) { function TestSubscriberBadEndpoint (line 76) | func TestSubscriberBadEndpoint(t *testing.T) { function TestSubscriberBadEncode (line 94) | func TestSubscriberBadEncode(t *testing.T) { function TestSubscriberErrorEncoder (line 112) | func TestSubscriberErrorEncoder(t *testing.T) { function TestSubscriberHappySubject (line 150) | func TestSubscriberHappySubject(t *testing.T) { function TestMultipleSubscriberBefore (line 166) | func TestMultipleSubscriberBefore(t *testing.T) { function TestMultipleSubscriberAfter (line 228) | func TestMultipleSubscriberAfter(t *testing.T) { function TestSubscriberFinalizerFunc (line 286) | func TestSubscriberFinalizerFunc(t *testing.T) { function TestEncodeJSONResponse (line 338) | func TestEncodeJSONResponse(t *testing.T) { type responseError (line 369) | type responseError struct method Error (line 373) | func (m responseError) Error() string { function TestErrorEncoder (line 377) | func TestErrorEncoder(t *testing.T) { type noContentResponse (line 413) | type noContentResponse struct function TestEncodeNoContent (line 415) | func TestEncodeNoContent(t *testing.T) { function TestNoOpRequestDecoder (line 442) | func TestNoOpRequestDecoder(t *testing.T) { function testSubscriber (line 474) | func testSubscriber(t *testing.T) (step func(), resp <-chan *nats.Msg) { function testRequest (line 513) | func testRequest(t *testing.T, c *nats.Conn, handler *natstransport.Subs... FILE: util/conn/manager.go type Dialer (line 14) | type Dialer type AfterFunc (line 17) | type AfterFunc type Manager (line 26) | type Manager struct method Take (line 63) | func (m *Manager) Take() net.Conn { method Put (line 70) | func (m *Manager) Put(err error) { method Write (line 75) | func (m *Manager) Write(b []byte) (int, error) { method loop (line 85) | func (m *Manager) loop() { function NewManager (line 41) | func NewManager(d Dialer, network, address string, after AfterFunc, logg... function NewDefaultManager (line 58) | func NewDefaultManager(network, address string, logger log.Logger) *Mana... function dial (line 128) | func dial(d Dialer, network, address string, logger log.Logger) net.Conn { function Exponential (line 140) | func Exponential(d time.Duration) time.Duration { FILE: util/conn/manager_test.go function TestManager (line 13) | func TestManager(t *testing.T) { function TestIssue292 (line 94) | func TestIssue292(t *testing.T) { type mockConn (line 127) | type mockConn struct method Read (line 131) | func (c *mockConn) Read(b []byte) (n int, err error) { method Write (line 136) | func (c *mockConn) Write(b []byte) (n int, err error) { method Close (line 141) | func (c *mockConn) Close() error { return nil } method LocalAddr (line 142) | func (c *mockConn) LocalAddr() net.Addr { return nil } method RemoteAddr (line 143) | func (c *mockConn) RemoteAddr() net.Addr { return nil } method SetDeadline (line 144) | func (c *mockConn) SetDeadline(t time.Time) error { return nil } method SetReadDeadline (line 145) | func (c *mockConn) SetReadDeadline(t time.Time) error { return nil } method SetWriteDeadline (line 146) | func (c *mockConn) SetWriteDeadline(t time.Time) error { return nil } function within (line 148) | func within(d time.Duration, f func() bool) bool {