package endpoint
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
Index ¶
- func WithID(id uint32) option
- func WithLastUpdated(ts time.Time) option
- func WithLoadFactor(loadFactor float32) option
- func WithLocalDC(local bool) option
- func WithLocation(location string) option
- func WithServices(services []string) option
- type Endpoint
Functions ¶
func WithID ¶
func WithID(id uint32) option
func WithLastUpdated ¶
func WithLoadFactor ¶
func WithLoadFactor(loadFactor float32) option
func WithLocalDC ¶
func WithLocalDC(local bool) option
func WithLocation ¶
func WithLocation(location string) option
func WithServices ¶
func WithServices(services []string) option
Types ¶
type Endpoint ¶
type Endpoint interface { Info() info.Info String() string Copy() Endpoint NodeID() uint32 Address() string Location() string LocalDC() bool LoadFactor() float32 LastUpdated() time.Time Touch(opts ...option) }
func New ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/endpoint/info |
- Version
- v3.11.12
- Published
- Mar 5, 2022
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 1 second ago –
Tools for package owners.