Documentation
¶
Index ¶
- type Service
- func (s *Service) ApplyEntry(state map[string]bson.M, entry *wal.Entry) error
- func (s *Service) MaterializeBranch(branch *wal.Branch) (map[string]map[string]bson.M, error)
- func (s *Service) MaterializeCollection(branch *wal.Branch, collection string) (map[string]bson.M, error)
- func (s *Service) MaterializeDocument(branch *wal.Branch, collection, documentID string) (bson.M, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service materializes current state from WAL entries
func NewService ¶
NewService creates a new materializer service
func (*Service) ApplyEntry ¶
ApplyEntry applies a WAL entry to the current state Exported for use by time travel service
func (*Service) MaterializeBranch ¶
MaterializeBranch builds the complete state of all collections in a branch
Click to show internal directories.
Click to hide internal directories.