shardmap

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEF_SHARD_CNT = 32

	BKDR_SEED = 131 // 31 131 1313 13131 131313 etc...
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardMap

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

func New

func New(shardCnt uint8) *ShardMap

* * @param uint8, shardCnt must be pow of two

func (*ShardMap) Del

func (this *ShardMap) Del(key string)

func (*ShardMap) Get

func (this *ShardMap) Get(key string) (interface{}, bool)

func (*ShardMap) Set

func (this *ShardMap) Set(key string, value interface{})

func (*ShardMap) Walk

func (this *ShardMap) Walk(wf func(k string, v interface{}))

Jump to

Keyboard shortcuts

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