Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStorage is used to wrap general storage errors. ErrStorage = errors.New("storage error") // ErrStorageSourceNotFound is returned when storage source cannot be found. ErrStorageSourceNotFound = errors.New("data source could not be found") )
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem represents a storage in a file.
func NewFileSystem ¶
func NewFileSystem(path string, options ...FileSystemOption) FileSystem
NewFileSystem creates a new File storage.
type FileSystemOption ¶
type FileSystemOption func(options *FileSystemOptions)
FileSystemOption sets an option to the FileSystemOptions.
type FileSystemOptions ¶
type FileSystemOptions struct{}
FileSystemOptions contains options for the file storage.
Click to show internal directories.
Click to hide internal directories.