resolver

package
v0.0.0-...-9a2c5cd Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewBuilder

func NewBuilder(log *wlog.Logger, 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 PrintDebugLog

func PrintDebugLog(p bool) Option

PrintDebugLog print grpc resolver watch service log

func WithInsecure

func WithInsecure(insecure bool) Option

WithInsecure with isSecure option.

func WithSubset

func WithSubset(size int) Option

WithSubset with subset size.

func WithTimeout

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