Documentation
¶
Index ¶
- Constants
- func AddCollection(label string) error
- type Collection
- type DB
- func (db *DB) AddCollection(label string) error
- func (db *DB) CollectionExists(label string) bool
- func (db *DB) GetRecordCount() int
- func (db *DB) GetSiblingNodes() []SiblingNode
- func (db *DB) HasCollection(label string) bool
- func (db *DB) Insert(record *Record) (*Record, error)
- func (db *DB) ParodySpan() int
- func (db *DB) TriggerParodyRedistrobution()
- func (db *DB) UsesParody() bool
- type Record
- type SiblingNode
Constants ¶
View Source
const (
CollectionPresentError = "Collection '%s' already exists."
)
Variables ¶
This section is empty.
Functions ¶
func AddCollection ¶
Types ¶
type Collection ¶
func (*Collection) Redistribute ¶
func (collection *Collection) Redistribute()
type DB ¶
type DB struct { ParentNode node MasterNode id.Id SiblingNodes []SiblingNode Collections map[string]*Collection }
func (*DB) AddCollection ¶
func (*DB) CollectionExists ¶
func (*DB) GetRecordCount ¶
func (*DB) GetSiblingNodes ¶
func (db *DB) GetSiblingNodes() []SiblingNode
func (*DB) HasCollection ¶
func (*DB) ParodySpan ¶
func (*DB) TriggerParodyRedistrobution ¶
func (db *DB) TriggerParodyRedistrobution()
func (*DB) UsesParody ¶
type Record ¶
type Record struct { Collection *Collection CollectionLabel string Id id.Id Nodes []id.Id Body interface{} SyncService interface{} }
func (*Record) Redistribute ¶
func (record *Record) Redistribute()
type SiblingNode ¶
func (SiblingNode) GetId ¶
func (s SiblingNode) GetId() id.Id
func (SiblingNode) GetRecordCount ¶
func (s SiblingNode) GetRecordCount() int
Click to show internal directories.
Click to hide internal directories.