registry

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func RegisterDriver

func RegisterDriver(resolverData map[string]*registry.ServiceInfo) *Driver

func (*Driver) CreateRegistry

func (d *Driver) CreateRegistry(cnf *conf.Configuration) (registry.Registry, error)

func (*Driver) GetRegistry

func (d *Driver) GetRegistry(name string) (registry.Registry, error)

func (*Driver) ResolverBuilder

func (d *Driver) ResolverBuilder(cnf *conf.Configuration) (resolver.Builder, error)

func (*Driver) WithDialOptions

func (d *Driver) WithDialOptions(registryOpts registry.DialOptions) ([]grpc.DialOption, error)

type Registry

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

func (*Registry) Close

func (r *Registry) Close()

func (*Registry) GetServiceInfos

func (r *Registry) GetServiceInfos(s string) ([]*registry.ServiceInfo, error)

func (*Registry) Register

func (r *Registry) Register(info *registry.ServiceInfo) error

func (*Registry) TTL

func (r *Registry) TTL() time.Duration

func (*Registry) Unregister

func (r *Registry) Unregister(info *registry.ServiceInfo) error

type Resolver

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

func (*Resolver) Build

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) ResolveNow

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

func (*Resolver) Scheme

func (r *Resolver) Scheme() string

Jump to

Keyboard shortcuts

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