viewsnapshot

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 (*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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL