locator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Nodes() ([]*Node, error)
	Node(name string) (*Node, error)
	Services() ([]*Service, error)
	Service(serviceName string) (*Service, error)
}

type Node

type Node struct {
	Name    string `json:"name"`
	Address string `json:"address"`
}

type Service

type Service struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Node    string `json:"name"`
	Address string `json:"address"`
	Port    uint   `json:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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