registry

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Register registers fabio as a service in the registry.
	Register() error

	// Deregister removes the service registration for fabio.
	Deregister() error

	// ReadManual returns the current manual overrides and
	// their version as seen by the registry.
	ReadManual() (value string, version uint64, err error)

	// WriteManual writes the new value to the registry if the
	// version of the stored document still matchhes version.
	WriteManual(value string, version uint64) (ok bool, err error)

	// WatchServices watches the registry for changes in service
	// registration and health and pushes them if there is a difference.
	WatchServices() chan string

	// WatchManual watches the registry for changes in the manual
	// overrides and pushes them if there is a difference.
	WatchManual() chan string
}
var Default Backend

Directories

Path Synopsis
Package file implements a simple file based registry backend which reads the routes from a file once.
Package file implements a simple file based registry backend which reads the routes from a file once.
Package static implements a simple static registry backend which uses statically configured routes.
Package static implements a simple static registry backend which uses statically configured routes.

Jump to

Keyboard shortcuts

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