package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Functions

New creates a hash ring of n replicas for each entry.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

LibMemcached uses the format traditionally used by libmemcached to map nodes to names.
SpyMemcached uses the format traditionally used by spymemcached to map nodes to names.

# Variables

CRCHash hash algorithm by crc32.
CRCPerlHash as used by the perl API.
128-bit FNV1.
FNV hashes are designed to be fast while maintaining a low collision rate.
64-bit FNV1.
128-bit FNV1a.
Variation of FNV.
64-bit FNV1a.
MD5-based hash algorithm used by ketama.

# Structs

EmptyKetamaNodeLocatorOption does not alter the configuration.
No description provided by the author
NodeLocator holds the information about the allNodes of the consistent hash nodes.
StringNodeLocator derived from NodeLocator, but explicit specialization with string.

# Interfaces

Intents to provide hash for locating a server for a key.
{} -> 127.0.0.1:11311 -> 127.0.0.1:11311-0 -> 1234 Node -> Key -> IterateKey -> HashKey -> IterateKey -> HashKey -> IterateKey -> HashKey.
A NodeLocatorOption sets options.

# Type aliases

Known key formats used in Ketama for assigning nodes around the ring.
No description provided by the author
KetamaNodeLocatorOptionFunc wraps a function that modifies NodeLocator into an implementation of the NodeLocatorOption interface.
No description provided by the author