Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileProgressStore ¶
type FileProgressStore[T indexTypes] struct {
// contains filtered or unexported fields
}
func NewFileProgressStore ¶
func NewFileProgressStore[T indexTypes](fileStore string) (*FileProgressStore[T], error)
NewFileProgressStore takes a storage file and its location and returns a FileProgressStore of its type or an error
func (*FileProgressStore[T]) ReturnUnprocessed ¶
func (f *FileProgressStore[T]) ReturnUnprocessed(toProcess []T) []T
ReturnUnprocessed checks to see if the items you wish to process have already been processed and stored within the current result set, this should be called be Save to check
func (*FileProgressStore[T]) Save ¶
func (f *FileProgressStore[T]) Save(items ...T) error
FileProgressStore appends the items to save an error is returned if the data cannot be saved
Click to show internal directories.
Click to hide internal directories.