Documentation ¶
Index ¶
- type BreakerStats
- type Collector
- func (c *Collector) Handler() http.Handler
- func (c *Collector) ReportCount(name string, eventType overcurrent.EventType)
- func (c *Collector) ReportDuration(name string, eventType overcurrent.EventType, duration time.Duration)
- func (c *Collector) ReportNew(name string, config overcurrent.BreakerConfig)
- func (c *Collector) ReportState(name string, state overcurrent.CircuitState)
- func (c *Collector) Start()
- func (c *Collector) Stop()
- type FrozenBreakerStats
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) ReportCount ¶
func (c *Collector) ReportCount(name string, eventType overcurrent.EventType)
func (*Collector) ReportDuration ¶
func (*Collector) ReportNew ¶
func (c *Collector) ReportNew(name string, config overcurrent.BreakerConfig)
func (*Collector) ReportState ¶
func (c *Collector) ReportState(name string, state overcurrent.CircuitState)
type FrozenBreakerStats ¶
type FrozenBreakerStats struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.