Documentation
¶
Index ¶
Constants ¶
View Source
const ( PolicyKindFirstReady = "FirstReady" PolicyKindRandom = "Random" PolicyKindRoundRobin = "RoundRobin" )
View Source
const ( LevelKindConnection = "Connection" LevelKindEndpoint = "Endpoint" LevelKindLocation = "Location" )
Variables ¶
View Source
var ( ErrConnectionCreate = errors.New("connection create failed") ErrNodeClosed = errors.New("node is closed") )
View Source
var ( ErrLevelsEmpty = errors.New("empty levels") ErrPathLen = errors.New("path length is not equal to levels length") ErrPathExists = errors.New("full path exists") ErrPathDoesNotExist = errors.New("path does not exist") ErrConnectionConfigMisplaced = errors.New("connection config must be provided only for connection level") )
View Source
var ErrPolicyUnknown = errors.New("unknown balancing policy")
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type Level ¶
func (Level) IsConnection ¶
type Path ¶
type Path[PT connection[T], T any] struct { IDs []string ConnectionConfig[PT, T] }
type Tree ¶
type Tree[PT connection[T], T any] struct { // contains filtered or unexported fields }
func (*Tree[PT, T]) DeletePath ¶
type TreeConfig ¶
Click to show internal directories.
Click to hide internal directories.