Documentation
¶
Index ¶
- type ViewSnapshotService
- func (s *ViewSnapshotService) Len() (int, error)
- func (s *ViewSnapshotService) PushSnapshot(details serialisable.ViewSnapshotDetails) error
- func (s *ViewSnapshotService) ViewBack() (*serialisable.ViewSnapshot, error)
- func (s *ViewSnapshotService) ViewForward() (*serialisable.ViewSnapshot, error)
- func (s *ViewSnapshotService) ViewRestore() (*serialisable.ViewSnapshot, error)
- type ViewSnapshotStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewSnapshotService ¶
type ViewSnapshotService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(store ViewSnapshotStore) *ViewSnapshotService
func (*ViewSnapshotService) Len ¶
func (s *ViewSnapshotService) Len() (int, error)
func (*ViewSnapshotService) PushSnapshot ¶
func (s *ViewSnapshotService) PushSnapshot(details serialisable.ViewSnapshotDetails) error
func (*ViewSnapshotService) ViewBack ¶
func (s *ViewSnapshotService) ViewBack() (*serialisable.ViewSnapshot, error)
func (*ViewSnapshotService) ViewForward ¶
func (s *ViewSnapshotService) ViewForward() (*serialisable.ViewSnapshot, error)
func (*ViewSnapshotService) ViewRestore ¶
func (s *ViewSnapshotService) ViewRestore() (*serialisable.ViewSnapshot, error)
type ViewSnapshotStore ¶
type ViewSnapshotStore interface {
Save(rs *serialisable.ViewSnapshot) error
SetAsHead(resultSetId int64) error
CurrentlyViewedSnapshot() (*serialisable.ViewSnapshot, error)
SetCurrentlyViewedSnapshot(resultSetId int64) error
Find(resultSetID int64) (*serialisable.ViewSnapshot, error)
Len() (int, error)
Head() (*serialisable.ViewSnapshot, error)
Remove(resultSetId int64) error
Dehead(fromNode *serialisable.ViewSnapshot) error
}
Click to show internal directories.
Click to hide internal directories.