selectors

package
v0.0.0-...-62717ef Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSelector

type ServerSelector interface {
	SetServers(servers ...string) error
	// PickServer returns the server address that a given item
	// should be shared onto.
	PickServer(key string) (net.Addr, error)
	Each(func(net.Addr) error) error
	ReturnAddresses() []net.Addr
}

ServerSelector is the interface that selects a memcache server as a function of the item's key.

All ServerSelector implementations must be safe for concurrent use by multiple goroutines.

Directories

Path Synopsis
Package is a golang port of https://github.com/RJ/ketama/tree/master/libketama
Package is a golang port of https://github.com/RJ/ketama/tree/master/libketama

Jump to

Keyboard shortcuts

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