bitsindex

package
v0.0.0-...-b1d3944 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemIndex

type MemIndex struct {
	Keys map[bits.K]struct{}
}

MemIndex uses an in-memory hash table to store key information

func NewMemIndex

func NewMemIndex() *MemIndex

NewMemIndex creates an empty index

func (*MemIndex) Has

func (idx *MemIndex) Has(k bits.K) bool

Has returns whether a key is contained in this index

func (*MemIndex) Write

func (idx *MemIndex) Write(k bits.K) error

Handle allows this index to be used as a KeyHandler in this case each key 'k' is added uniquely to the index

Jump to

Keyboard shortcuts

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