resolver

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(d naming.Discovery)

Register register resolver builder if nil.

func Set

func Set(b naming.Discovery)

Set overwrite any registered builder

Types

type Builder

type Builder struct {
	naming.Discovery
}

builder is also a resolver builder. It's build() function always returns itself.

func (*Builder) Build

Build returns itself for Resolver, because it's both a builder and a resolver. consul://local/provider-demo

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver watches for the updates on the specified target. Updates include address updates and service config updates.

func (*Resolver) Close

func (r *Resolver) Close()

Close is a noop for Resolver.

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(o resolver.ResolveNowOptions)

ResolveNow is a noop for Resolver.

Jump to

Keyboard shortcuts

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