registry

package
v0.0.0-...-e044eaa Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

package registry provides service discovery and registration with etcd

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultETCDConfig = clientv3.Config{
		Endpoints:   []string{"localhost:2379"},
		DialTimeout: 5 * time.Second,
	}
)

Functions

func ETCDDial

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

func Register

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

register a service to etcd

Types

This section is empty.

Jump to

Keyboard shortcuts

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