infrastructures

package
v0.0.0-...-60fa4c6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IServiceDiscovery

type IServiceDiscovery interface {
	Register(serviceID, serviceName, serviceHostname, port string) error
	DeRegister(serviceID string)
}

type ServiceDiscovery

type ServiceDiscovery struct {
	Consul *consulapi.Client
}

func (*ServiceDiscovery) DeRegister

func (c *ServiceDiscovery) DeRegister(id string) error

func (*ServiceDiscovery) Register

func (c *ServiceDiscovery) Register(serviceID, serviceName, serviceHostName, servicePort string) error

Jump to

Keyboard shortcuts

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