Documentation ¶
Overview ¶
Package Optimizer provides a PT 2.0 Go API wrapper around the connections used
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewOptimizerClient ¶
type FirstStrategy ¶
type FirstStrategy struct {
// contains filtered or unexported fields
}
begin refactor
func (*FirstStrategy) Choose ¶
func (strategy *FirstStrategy) Choose() Transport
type RandomStrategy ¶
type RandomStrategy struct {
// contains filtered or unexported fields
}
end refactor
func (*RandomStrategy) Choose ¶
func (strategy *RandomStrategy) Choose() Transport
type RotateStrategy ¶
type RotateStrategy struct {
// contains filtered or unexported fields
}
func (*RotateStrategy) Choose ¶
func (strategy *RotateStrategy) Choose() Transport
type Strategy ¶
type Strategy interface { Choose() Transport Report(transport Transport, success bool, durationElapsed float64) }
func NewFirstStrategy ¶
func NewMinimizeDialDuration ¶
func NewRandomStrategy ¶
func NewRotateStrategy ¶
func NewTrackStrategy ¶
type TrackStrategy ¶
type TrackStrategy struct {
// contains filtered or unexported fields
}
func (*TrackStrategy) Choose ¶
func (strategy *TrackStrategy) Choose() Transport
Click to show internal directories.
Click to hide internal directories.