distributed

package module
v0.0.0-...-780c411 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 2 Imported by: 3

README

distributed

lib for client via partition and replication access

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckSum

type CheckSum func([]byte) uint32

type KetamaHash

type KetamaHash struct {
}

type ModularHash

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

func ModularHashIEEE

func ModularHashIEEE() *ModularHash

func NewModularHash

func NewModularHash(check CheckSum) *ModularHash

func (*ModularHash) Partition

func (part *ModularHash) Partition(key []byte, N int) int

type Partition

type Partition interface {
	Partition([]byte, int) int
}

type Replication

type Replication interface {
	Replicate(int) int
}

type RoundRobinSelector

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

func NewRoundRobin

func NewRoundRobin() *RoundRobinSelector

func (*RoundRobinSelector) Replicate

func (replica *RoundRobinSelector) Replicate(N int) int

Jump to

Keyboard shortcuts

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