bfsearch

package
v0.0.0-...-e38b929 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomSearch

type BloomSearch interface {
	Get(int) []*dht.Peer
	Recalculate()
}
type Search struct {
	// contains filtered or unexported fields
}

func NewSearch

func NewSearch(peerList dht.PeerList) *Search

func (*Search) Get

func (b *Search) Get(bitIndex uint) []*dht.Peer

func (*Search) GetFromIndices

func (b *Search) GetFromIndices(bitIndex []uint) []*dht.Peer

func (*Search) Recalculate

func (b *Search) Recalculate(peerList dht.PeerList)

Jump to

Keyboard shortcuts

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