registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdDial

func EtcdDial(c *clientv3.Client, service string) (*grpc.ClientConn, error)

EtcdDial 向grpc请求一个服务 通过提供一个etcd client和service name即可获得Connection

func Register

func Register(service string, addr string, stop chan error) error

Register 注册一个服务至etcd 注意 Register将不会return 如果没有error的话

Types

This section is empty.

Jump to

Keyboard shortcuts

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