pilotresolver

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPilotClient

func SetPilotClient(pClient pilotdiscovery.PilotClient)

SetPilotClient sets the pilotresolver pkg variable

Types

type Resolver

type Resolver struct{}

Resolver implements the naming.Resolver interface. WARNING: There must be one Resolver instantiated per connected service. That is to say: do not use shared grpc.DialOptions.

func (*Resolver) Resolve

func (c *Resolver) Resolve(target string) (naming.Watcher, error)

Resolve creates a Watcher for target. target is expected to match <service-name>.<namespace>(.<whatever>):<port> Because of Resolve interface, pilotClient must be a package variable

Jump to

Keyboard shortcuts

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