chord

package
v0.0.0-...-85dbdb0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NIL = ""
	M   = 160
)

Variables

View Source
var (
	RingSize = pow2(M)
)

Functions

This section is empty.

Types

type Address

type Address = string

type ChordNode

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

func (*ChordNode) Create

func (n *ChordNode) Create()

func (*ChordNode) Delete

func (n *ChordNode) Delete(key string) bool

func (*ChordNode) ForceQuit

func (n *ChordNode) ForceQuit()

func (*ChordNode) Get

func (n *ChordNode) Get(key string) (bool, string)

func (*ChordNode) Initialize

func (n *ChordNode) Initialize(addr string)

func (*ChordNode) Join

func (n *ChordNode) Join(addr string) bool

func (*ChordNode) Ping

func (n *ChordNode) Ping(addr string) bool

func (*ChordNode) Put

func (n *ChordNode) Put(key, value string) bool

func (*ChordNode) Quit

func (n *ChordNode) Quit()

func (*ChordNode) Run

func (n *ChordNode) Run()

type DataPair

type DataPair struct {
	Key KeyType
	Val ValueType
}

type FilterType

type FilterType func(string) bool

type Identifer

type Identifer = *big.Int

type KeyType

type KeyType = string

type StoreType

type StoreType map[KeyType]ValueType

type ValueType

type ValueType = string

Jump to

Keyboard shortcuts

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