Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AFile ¶
func NewAFileFromString ¶
NewAFileFromString (re)constructs a AFile from a string representation of it; i.e., from the output of the AFile String method.
func (AFile) LegacyString ¶
LegacyString returns a string representation of the AFile as it used to be in older versions of Hoard.
type AStore ¶
type AStore interface { WritableAStore ReadableAStore Delete(aFile AFile) error fmt.Stringer }
type DFile ¶
func NewDFileFromString ¶
NewDFileFromString (re)constructs a DFile from a string representation of it; i.e., from the output of the DFile String method.
type DStoreFactory ¶
type DStoreFactory interface {
New() (DStore, func())
}
type Hash ¶
type Hash string
func CalculateHash ¶
func ExampleHash ¶
func ExampleHash() Hash
func ExampleHash2 ¶
func ExampleHash2() Hash
type ReadableAStore ¶
type ReadableAStore interface { // TODO: audit all usages of this to ensure the reader is closed // TODO: ensure all implementers return nil on error Get(aFile AFile) (io.ReadCloser, error) // Searches for all hours for which there is at least 1 AFile whose time is within that hour Search(startOpt *hour.Hour, end hour.Hour) ([]SearchResult, error) }
type ReadableDStore ¶
type ReadableDStore interface { // TODO: audit all usages of this to ensure the reader is closed // TODO: ensure all implementers return nil on error Get(dFile DFile) (io.ReadCloser, error) }
type SearchResult ¶
func NewAStoreSearchResult ¶
func NewAStoreSearchResult(hour hour.Hour) SearchResult
Directories ¶
Path | Synopsis |
---|---|
Package astore contains implementations for different AStores used in Hoard
|
Package astore contains implementations for different AStores used in Hoard |
Package dstore contains implementations for different DStores used in Hoard
|
Package dstore contains implementations for different DStores used in Hoard |
Click to show internal directories.
Click to hide internal directories.