registry

package
v0.0.0-...-8a04a08 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Id      string
	Name    string
	Host    string
	Port    string
	Address string
	URL     string
}

type Registry

type Registry interface {
	Register(node *Node) error
	Deregister(node *Node) error
	GetService(name string) (*Service, error)
	ListServices() ([]*Service, error)
	Watch() (Watcher, error)
	Close()
}

type Service

type Service struct {
	Name  string
	Nodes []*Node
}

type Watcher

type Watcher interface {
	Stop()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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