hystrixmiddleware

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CircuitState            = "circuit_state"
	Attempts                = "attempts"
	Errors                  = "errors"
	Successes               = "successes"
	Failures                = "failures"
	Rejects                 = "rejects"
	ShortCircuits           = "short_circuits"
	Timeouts                = "timeouts"
	FallbackSuccesses       = "fallback_successes"
	FallbackFailures        = "fallback_failures"
	ContextCanceled         = "context_canceled"
	ContextDeadlineExceeded = "context_deadline_exceeded"
	TotalDuration           = "total_duration"
	RunDuration             = "run_duration"
	ConcurrencyInUse        = "concurrency_in_use"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Prefix string
}

type HystrixPrometheus

type HystrixPrometheus struct {
	// contains filtered or unexported fields
}

func Default

func Default(gp *gp.GoPrometheus) *HystrixPrometheus

func New

func New(gp *gp.GoPrometheus, config *Config) *HystrixPrometheus

func (*HystrixPrometheus) Middleware

func (hp *HystrixPrometheus) Middleware(name string) metricCollector.MetricCollector

func (*HystrixPrometheus) Reset

func (hpm *HystrixPrometheus) Reset()

func (*HystrixPrometheus) Update

func (hp *HystrixPrometheus) Update(r metricCollector.MetricResult)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL