discovery

package
v2.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWatcherCreateTimeout = errors.New("discovery create watcher overtime")

Functions

func NewBuilder

func NewBuilder(d registry.Discovery, opts ...Option) resolver.Builder

NewBuilder creates a builder which is used to factory registry resolvers.

Types

type Option

type Option func(o *builder)

Option is builder option.

func DisableDebugLog deprecated added in v2.2.2

func DisableDebugLog() Option

Deprecated: please use PrintDebugLog DisableDebugLog disables update instances log.

func PrintDebugLog added in v2.6.2

func PrintDebugLog(p bool) Option

PrintDebugLog print grpc resolver watch service log

func WithInsecure added in v2.0.5

func WithInsecure(insecure bool) Option

WithInsecure with isSecure option.

func WithSubset added in v2.6.1

func WithSubset(size int) Option

WithSubset with subset size.

func WithTimeout added in v2.0.2

func WithTimeout(timeout time.Duration) Option

WithTimeout with timeout option.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL