Documentation ¶
Index ¶
- Constants
- type Config
- type Option
- func With(config config.Common) 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 Option ¶
type Option func(c *Config)
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.