Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct { Permissions access.Permissions Rows Rows }
Collection is a permissions object and Rows. If Permissions is empty, then "..." will be used.
type Collections ¶
type Collections map[string]Collection
Collections is a map from collection names to Collections.
type Database ¶
type Database struct { Permissions access.Permissions Collections Collections }
Database is a permissions object and Collections. If Permissions if empty, then "..." will be used.
type DumpStream ¶
type DumpStream struct { // ServiceName is the name of the syncbase service from which Rows will be // dumped. ServiceName string // contains filtered or unexported fields }
DumpStream iterates through all collections in all database, and all rows in each collection, emiting Rows for each row in the collection. The stream is ordered first by database, then by collection, then by row. In addition, a Row is emitted for each database before all of its collections, and a Row is emitted for each collections before its rows.
func NewDumpStream ¶
func (*DumpStream) Advance ¶
func (s *DumpStream) Advance() bool
func (*DumpStream) Cancel ¶
func (s *DumpStream) Cancel()
func (*DumpStream) Err ¶
func (s *DumpStream) Err() error
func (*DumpStream) Row ¶
func (s *DumpStream) Row() *Row
Row returns the next row in the DumpStream.
type Row ¶
type Row struct { DatabaseId wire.Id CollectionId wire.Id // If the Row represents a Collection or Database, then Key and Value will // be "" and nil respectively. Key string Value *vdl.Value // If the Row represents a real Row, then Permissions will be nil, // otherwise it will be the Permissions of the Collection or Database. Permissions access.Permissions }
Row represents a syncbase Row, Collection, or Database.