package cluster
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/balancer/cluster"
Index ¶
- Variables
- func From(parent *Cluster) option
- func WithFallback(allowFallback bool) option
- func WithFilter(filter func(e endpoint.Info) bool) option
- type Cluster
- func New(endpoints []endpoint.Endpoint, opts ...option) *Cluster
- func Without(s *Cluster, required endpoint.Endpoint, other ...endpoint.Endpoint) *Cluster
- func (c *Cluster) All() (all []endpoint.Endpoint)
- func (c *Cluster) Availability() (percent float64)
- func (c *Cluster) Next(ctx context.Context) (endpoint.Endpoint, error)
Variables ¶
var ( ErrNoEndpoints = xerrors.Wrap(fmt.Errorf("no endpoints")) ErrNilPtr = xerrors.Wrap(fmt.Errorf("nil pointer")) )
Functions ¶
func From ¶
func From(parent *Cluster) option
func WithFallback ¶
func WithFallback(allowFallback bool) option
func WithFilter ¶
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func New ¶
func Without ¶
func (*Cluster) All ¶
func (*Cluster) Availability ¶
func (*Cluster) Next ¶
Source Files ¶
- Version
- v3.76.2-rc0
- Published
- Jul 31, 2024
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 19 seconds ago –
Tools for package owners.