Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareResponse ¶
CompareResponse is for comparing directory diffs between times. Tag is used for labeling files as added, updated, or unchanged.
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
Directory Model
func NewDirectory ¶
NewDirectory makes a new directory instance
func (*Directory) CompareListing ¶
func (d *Directory) CompareListing(pathName string, startDate string, endDate string) ([]CompareResponse, error)
CompareListing compares the directory state betwen the startDate and endDate and returns a file listing of CompareResponses.
type Entry ¶
type Entry struct { Path string `json:",omitempty"` Version int `json:",omitempty"` ModTime string `json:",omitempty"` URL string `json:",omitempty"` }
Entry contains info about a file version entry for formatting
type File ¶
type File struct {
// contains filtered or unexported fields
}
File Model
func (*File) GetHistory ¶
GetHistory gets the revision history of a file. Gets list of versions and modTimes.
type Metadata ¶
type Metadata struct { Path string Version int ModTime sql.NullString ArchiveKey sql.NullString }
Metadata about a file version from the db
Click to show internal directories.
Click to hide internal directories.