maglev

package module
v0.0.0-...-8961b9b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 1 Imported by: 3

README

maglev: Maglev consistent hashing

godoc: https://godoc.org/github.com/dgryski/go-maglev

Documentation

Overview

Package maglev implements maglev consistent hashing

http://research.google.com/pubs/pub44824.html

Index

Constants

View Source
const (
	SmallM = 65537
	BigM   = 655373
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

func New

func New(names []string, m uint64) *Table

func (*Table) Lookup

func (t *Table) Lookup(key uint64) int

func (*Table) Rebuild

func (t *Table) Rebuild(dead []int)

Jump to

Keyboard shortcuts

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