Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) Clock() clockwork.Clock
- func (c *Config) Database() string
- func (c *Config) Endpoint() string
- func (c *Config) Interval() time.Duration
- func (c *Config) Meta() *meta.Meta
- func (c *Config) MutateAddress(fqdn string) string
- func (c *Config) Secure() bool
- func (c *Config) Trace() *trace.Discovery
- type Option
- func With(config config.Common) Option
- func WithAddressMutator(addressMutator func(address string) string) Option
- func WithClock(clock clockwork.Clock) Option
- func WithDatabase(database string) Option
- func WithEndpoint(endpoint string) Option
- func WithInterval(interval time.Duration) Option
- func WithMeta(meta *meta.Meta) Option
- func WithSecure(ssl bool) Option
- func WithTrace(trace trace.Discovery, opts ...trace.DiscoveryComposeOption) Option
Constants ¶
View Source
const (
DefaultInterval = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (*Config) MutateAddress ¶ added in v3.67.0
type Option ¶
type Option func(c *Config)
func WithAddressMutator ¶ added in v3.67.0
func WithDatabase ¶
WithDatabase set a required database name.
func WithEndpoint ¶
WithEndpoint set a required starting endpoint for connect
func WithInterval ¶
WithInterval set the frequency of background tasks of ydb endpoints discovery.
If Interval is zero then the DefaultInterval is used.
If Interval is negative, then no background discovery prepared.
Click to show internal directories.
Click to hide internal directories.