router

package
v0.0.0-...-654a8ab Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Join([]string) error

	LocalNode() node.Type

	Route(string) (node.Type, bool, error)
}

func New

func New(port int) (Interface, error)

New creates a request router that uses consistent hashing and a scalable decentralized membership protocol (SWIM).

Directories

Path Synopsis
Package hash contains types for hashing and consistent hash rings
Package hash contains types for hashing and consistent hash rings

Jump to

Keyboard shortcuts

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