datastore

package
v0.0.0-...-1a052b4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAll

func ClearAll()

func Contains

func Contains(obj Identifiable) bool

func ContainsId

func ContainsId(id bson.ObjectId) bool

func Init

func Init()

func Remove

func Remove(obj Identifiable)

func Set

func Set(obj Identifiable)

Types

type Identifiable

type Identifiable interface {
	GetId() bson.ObjectId
	GetType() ObjectType
	ReadLock()
	ReadUnlock()
	Destroy()
	IsDestroyed() bool
}

func Get

func Get(id bson.ObjectId) Identifiable

type ObjectType

type ObjectType int

Jump to

Keyboard shortcuts

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