package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 24, 2017
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Archive represents the location and the data of a given archive
NewArchive will create a new Archive struct with the given path
Add will add the guid to the archive. Keep in mind that this is only in memory until Persist() is called
Contains will return true, if the guid is already part of the archive
Persist will write the current data to the disk at the given path
Read will refresh the data included in the archive from the set path
type Data struct {
Items []Item `json:"items"`
}
Data is just a list of guids that have already been processed for a given feed
type Item struct {
Guid string `json:"guid"`
Timestamp int64 `json:"timestamp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.