registry

package
v0.0.0-...-e8f9835 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(serviceID string, freePort int)

func RegisterServer

func RegisterServer(serviceID string, freePort int)

Types

type Consul

type Consul struct {
	Host string
	Port int
}

func (*Consul) DeRegister

func (r *Consul) DeRegister(serviceId string) error

func (*Consul) Register

func (r *Consul) Register(address string, port int, name string, tags []string, id string) error

type Registry

type Registry interface {
	Register(address string, port int, name string, tags []string, id string) error
	DeRegister(serviceId string) error
}

func NewRegistry

func NewRegistry() Registry

Jump to

Keyboard shortcuts

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