discovery

package
v0.0.0-...-e5281c0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2013 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_METADATA_KEY = "rax:auto_scaling_group_id"
View Source
const DEFAULT_PORT = ""
View Source
const DEFAULT_PROTOCOL = "http"
View Source
const DEFAULT_REGION = "dfw"

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

func NewEtcd

func NewEtcd(machines []string) *Etcd

func (*Etcd) Get

func (e *Etcd) Get(serviceName string) ([]string, error)

func (*Etcd) UpdateCache

func (e *Etcd) UpdateCache()

func (*Etcd) Watch

func (e *Etcd) Watch()

type NoopDiscovery

type NoopDiscovery struct{}

func NewNoopDiscovery

func NewNoopDiscovery() *NoopDiscovery

func (*NoopDiscovery) Get

func (d *NoopDiscovery) Get(serviceName string) ([]string, error)

type Rackspace

type Rackspace struct {
	// contains filtered or unexported fields
}

func NewRackspaceFromUrl

func NewRackspaceFromUrl(u *url.URL) (*Rackspace, error)

func (*Rackspace) Get

func (r *Rackspace) Get(serviceName string) ([]string, error)

func (*Rackspace) UpdateCache

func (r *Rackspace) UpdateCache() error

func (*Rackspace) Watch

func (r *Rackspace) Watch()

type Service

type Service interface {
	Get(key string) ([]string, error)
}

func New

func New(discoveryUrl string) (Service, error)

Jump to

Keyboard shortcuts

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