Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (Cache) AddFile ¶
AddFile saves the given data to a file in HOME/files directory using sha256 sum as filename.
func (Cache) GetFile ¶
GetFile loads the file from the file storage. Returns error if the file does not exist.
func (Cache) MustGetFile ¶
MustGetFile loads the file from the file storage. Panics if the file does not exist.
Click to show internal directories.
Click to hide internal directories.