hystrix

package
v0.0.0-...-ab99255 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreakerStats

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

func NewBreakerStats

func NewBreakerStats(config overcurrent.BreakerConfig) *BreakerStats

func (*BreakerStats) AddDuration

func (s *BreakerStats) AddDuration(eventType overcurrent.EventType, duration time.Duration)

func (*BreakerStats) Freeze

func (s *BreakerStats) Freeze() *FrozenBreakerStats

func (*BreakerStats) Increment

func (s *BreakerStats) Increment(eventType overcurrent.EventType)

func (*BreakerStats) SetState

func (s *BreakerStats) SetState(state overcurrent.CircuitState)

type Collector

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

func NewCollector

func NewCollector() *Collector

func (*Collector) Handler

func (c *Collector) Handler() http.Handler

func (*Collector) ReportCount

func (c *Collector) ReportCount(name string, eventType overcurrent.EventType)

func (*Collector) ReportDuration

func (c *Collector) ReportDuration(name string, eventType overcurrent.EventType, duration time.Duration)

func (*Collector) ReportNew

func (c *Collector) ReportNew(name string, config overcurrent.BreakerConfig)

func (*Collector) ReportState

func (c *Collector) ReportState(name string, state overcurrent.CircuitState)

func (*Collector) Start

func (c *Collector) Start()

func (*Collector) Stop

func (c *Collector) Stop()

type FrozenBreakerStats

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

Jump to

Keyboard shortcuts

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