registry

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: Apache-2.0 Imports: 0 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Script   string
	TTL      string
	HTTP     string
	Interval string
}

func DefaultCheck

func DefaultCheck() *Check

type Registry

type Registry interface {
	CacheCreate() bool
	CacheDelete(string)
	CacheLoad(string, string) error
	CacheLookup(string) *Service
	CacheMark(string)

	Register(*Service)
	Deregister()
}

type Service

type Service struct {
	ID      string
	Name    string
	Port    int
	Address string
	Tags    []string
	Check   *Check
	Agent   string
}

Source Files

Jump to

Keyboard shortcuts

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