discovery

package
v0.0.0-...-2ebd195 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceRegisterWrapper

type ServiceRegisterWrapper interface {
	ServiceRegister() error
	ServiceUnRegister() error
}

func NewDiscoveryRegister

func NewDiscoveryRegister(conf *com.RegisterConfig) (ServiceRegisterWrapper, error)

type ServiceResolverWrapper

type ServiceResolverWrapper interface {
	Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
	Scheme() string
	ResolveNow(o resolver.ResolveNowOptions)
	Close()
}

func NewDiscoveryResolver

func NewDiscoveryResolver(conf *com.ResolverConfig) (ServiceResolverWrapper, error)

Create grpc resolver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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