Documentation ¶
Overview ¶
mongodb package is for using MongoDB as the storage layer for a CRAQ node.
Index ¶
- type MongoDB
- func (m *MongoDB) AllCommitted() ([]*store.Item, error)
- func (m *MongoDB) AllDirty() ([]*store.Item, error)
- func (m *MongoDB) AllNewerCommitted(verBykey map[string]uint64) ([]*store.Item, error)
- func (m *MongoDB) AllNewerDirty(verBykey map[string]uint64) ([]*store.Item, error)
- func (m *MongoDB) Commit(key string, version uint64) error
- func (m *MongoDB) Connect(ctx context.Context) error
- func (m *MongoDB) Disconnect(ctx context.Context) error
- func (m *MongoDB) DropCollection(ctx context.Context) error
- func (m *MongoDB) Read(key string) (*store.Item, error)
- func (m *MongoDB) ReadVersion(key string, version uint64) (*store.Item, error)
- func (m *MongoDB) Write(key string, val []byte, version uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
func (*MongoDB) AllNewerCommitted ¶
func (*MongoDB) AllNewerDirty ¶
func (*MongoDB) ReadVersion ¶
Click to show internal directories.
Click to hide internal directories.