store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const NumShards = 128

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStatus

type BlockStatus struct {
	IsBlocked bool
	FrontTile float64
	Since     float64
}

type BlockedValue

type BlockedValue struct {
	Since float64
	Value interface{}
}

type Int32Map

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

func NewInt32Map

func NewInt32Map(maxTracked int64) *Int32Map

func (*Int32Map) BlockedValues

func (i *Int32Map) BlockedValues() []BlockedValue

func (*Int32Map) CleanUp

func (i *Int32Map) CleanUp(clock int32)

func (*Int32Map) Get

func (i *Int32Map) Get(key interface{}) (*BlockStatus, *sync.Mutex)

func (*Int32Map) Type

func (i *Int32Map) Type() string

type ShardMap

type ShardMap interface {
	Get(key interface{}) (*BlockStatus, *sync.Mutex)
	CleanUp(clock int32)
	Type() string
	BlockedValues() []BlockedValue
}

type StringMap

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

func NewStringMap

func NewStringMap(maxTracked int64) *StringMap

func (*StringMap) BlockedValues

func (s *StringMap) BlockedValues() []BlockedValue

func (*StringMap) CleanUp

func (s *StringMap) CleanUp(clock int32)

func (*StringMap) Get

func (s *StringMap) Get(key interface{}) (*BlockStatus, *sync.Mutex)

func (*StringMap) Type

func (s *StringMap) Type() string

Jump to

Keyboard shortcuts

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