registry

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceTarget

func GetServiceTarget(serviceDesc grpc.ServiceDesc) string

func NewEtcdRegister

func NewEtcdRegister(conf clientv3.Config, serviceDesc grpc.ServiceDesc, host, port string, opts ...Option) (*etcdRegister, error)

func NewEtcdResolver

func NewEtcdResolver(conf clientv3.Config, serviceDesc grpc.ServiceDesc) (resolver.Builder, error)

Types

type Option

type Option func(*etcdRegister)

func WithTTL

func WithTTL(ttl int64) Option

Jump to

Keyboard shortcuts

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