Documentation
¶
Overview ¶
Package pbdb provides types and functions for storing note maps using a small number of protocol buffer message types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoteMap ¶
Types ¶
type Db ¶
type Db interface {
NewReaderTransaction() DbReaderTransaction
NewReadWriterTransaction() DbReadWriterTransaction
io.Closer
}
type DbReadWriter ¶
DbReader stores and removes pb.Note messages.
type DbReadWriterTransaction ¶
type DbReadWriterTransaction interface {
DbReaderTransaction
DbReadWriter
Commit() error
}
type DbReader ¶
type DbReader interface {
Find(q *notes.Query) ([]uint64, error)
Load(id ...uint64) ([]*pb.Note, error)
}
DbReader finds and loads pb.Note messages.
type DbReaderTransaction ¶
type DbReaderTransaction interface {
DbReader
Discard()
}
Click to show internal directories.
Click to hide internal directories.