routing

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProdTaskType represents a decision to use the paris stack for this request.
	Paris = heuristics.ProdTaskType

	// LatestTaskType represents a decision to use the paris stack on the latest channel for this request.
	ParisLatest = heuristics.LatestTaskType
)

Variables

View Source
var ReasonMessageMap = map[Reason]string{
	ParisNotEnabled:             "PARIS is not enabled",
	AllDevicesAreOptedIn:        "All devices are opted in",
	NoPools:                     "Device has no pools, possibly due to error calling UFS",
	WrongPool:                   "Device has a pool not matching opted-in pools",
	ScoreBelowThreshold:         "Random score associated with is below threshold, authorizing new flow",
	ScoreTooHigh:                "Random score associated with task is too high",
	ThresholdZero:               "Route labstation repair task: a threshold of zero implies that optinAllLabstations should be set, but optinAllLabstations is not set",
	MalformedPolicy:             "Unrecognized policy",
	NilArgument:                 "A required argument was unexpectedly nil",
	NotALabstation:              "Paris not enabled yet for non-labstations",
	ErrorExtractingPermilleInfo: "Error extracting permille info",
}

ReasonMessageMap maps each reason to a readable description.

Functions

This section is empty.

Types

type Reason

type Reason int

Reason is a rationale for why we made the decision that we made.

const (
	ParisNotEnabled Reason = iota
	AllDevicesAreOptedIn
	NoPools
	WrongPool
	ScoreBelowThreshold
	ScoreTooHigh
	ThresholdZero
	MalformedPolicy
	NilArgument
	NotALabstation
	ErrorExtractingPermilleInfo
	InvalidRangeArgument
	RepairOnlyField
)

Jump to

Keyboard shortcuts

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