Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
func NewCounter ¶
type ErrorCounter ¶
func NewErrorCounter ¶
func NewErrorCounter(window time.Duration) *ErrorCounter
func (*ErrorCounter) Failure ¶
func (e *ErrorCounter) Failure() float64
func (*ErrorCounter) MarkFailure ¶
func (e *ErrorCounter) MarkFailure(n float64) float64
func (*ErrorCounter) MarkSuccess ¶
func (e *ErrorCounter) MarkSuccess(n float64) float64
func (*ErrorCounter) Rate ¶
func (e *ErrorCounter) Rate() float64
func (*ErrorCounter) Record ¶
func (e *ErrorCounter) Record(fn func() error) error
func (*ErrorCounter) Success ¶
func (e *ErrorCounter) Success() float64
Click to show internal directories.
Click to hide internal directories.