Documentation ¶
Index ¶
Constants ¶
View Source
const ( NextPlanStep = 10 FinishedPlanSteps = 20 Abort = 30 )
Codes are used to relay information from the application to the CLI about what actions are being taken.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventWriter ¶
type EventWriter interface {
Write(structuredlogs.Event)
}
type PlanStep ¶
type PlanStep struct { // Percentage of requests to route to new route. Percentage int // Duration is the length of time that the step takes place before moving // on to the next. If this is the last step in the plan, then the planner // will recommend all the traffic go to the new route. Duration time.Duration }
type RoutePlanner ¶
type RoutePlanner struct {
// contains filtered or unexported fields
}
func NewRoutePlanner ¶
func NewRoutePlanner(plan Plan, p Predicate, w EventWriter, log *log.Logger) *RoutePlanner
func (*RoutePlanner) CurrentPercentage ¶
func (p *RoutePlanner) CurrentPercentage() int
Click to show internal directories.
Click to hide internal directories.