view

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package view defines common interfaces about visualization of retry/hedging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attempt

type Attempt interface {
	Start() time.Time
	End() time.Time
	Error() error
	Inflight() bool
	NoMoreAttempt() bool
}

Attempt defines the stat of each retry/hedging attempt.

type Stat

type Stat interface {
	Cost() time.Duration
	Attempts() []Attempt
	Throttled() bool
	InflightN() int
	Error() error
}

Stat defines a stat each retry/hedging must have.

Directories

Path Synopsis
Package log provides log utils used by retry/hedging.
Package log provides log utils used by retry/hedging.
prometheus
Package prom is a prometheus reporter.
Package prom is a prometheus reporter.

Jump to

Keyboard shortcuts

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