eureka

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Adapter for Eureka Service Discovery

func New

func New(config Config) (*Adapter, error)

New creates and initializes a new Eureka Service Discovery adapter

func (*Adapter) ListInstances

func (a *Adapter) ListInstances() ([]*api.ServiceInstance, error)

ListInstances queries for the list of service instances currently registered.

func (*Adapter) ListServiceInstances

func (a *Adapter) ListServiceInstances(serviceName string) ([]*api.ServiceInstance, error)

ListServiceInstances queries for the list of service instances currently registered for the given service.

func (*Adapter) ListServices

func (a *Adapter) ListServices() ([]string, error)

ListServices queries for the list of services for which instances are currently registered.

type Config

type Config struct {
	URLs []string
}

Config encapsulates Eureka configuration parameters

Jump to

Keyboard shortcuts

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