service

package
v0.0.0-...-abbbc68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulServiceDiscoveryService

type ConsulServiceDiscoveryService struct {
	ConsulAddress       string
	ConsulScheme        string
	ConfigurationReader config.ConfigurationReader
}

ConsulServiceDiscoveryService uses Consul to resolve available services in the network.

func (ConsulServiceDiscoveryService) ResolveService

func (consulServiceDiscoveryService ConsulServiceDiscoveryService) ResolveService(serviceName string) ([]contract.DiscoveredServiceInfo, error)

ResolveService resolves the provided service name by returning the list of services providing the same functionality. serviceName: Mandatory. The name of the service to resolve Returns either the collection of available service information or error if something goes wrong.

Jump to

Keyboard shortcuts

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