Documentation
¶
Index ¶
- func FolderID(dir string) (string, error)
- func ParseSeries(ctx context.Context, dir string) (Series, []Entry, error)
- type Archive
- func (a *Archive) Exists() bool
- func (a *Archive) FilenameWithExt() string
- func (a *Archive) Filesize() float64
- func (a *Archive) ReaderForFile(fp string) (io.Reader, int64, error)
- func (a *Archive) Scan(src interface{}) error
- func (a Archive) Value() (driver.Value, error)
- func (a *Archive) Walk(ctx context.Context, fh archiver.FileHandler) error
- type Entry
- type Page
- type Pages
- type Series
- type Subscription
- type Tags
- func (t *Tags) Add(values ...string)
- func (t *Tags) Combine(tags *Tags)
- func (t *Tags) Empty() bool
- func (t *Tags) Has(value string) bool
- func (t Tags) List() []string
- func (t Tags) MarshalJSON() ([]byte, error)
- func (t *Tags) Scan(src interface{}) error
- func (t *Tags) UnmarshalJSON(b []byte) error
- func (t Tags) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct { Title string `json:"title"` // Filename without the extension Path string `json:"path"` // Filepath on the file system Type archive.Type `json:"type"` // File format i.e. ZIP/RAR }
func (*Archive) FilenameWithExt ¶
func (*Archive) ReaderForFile ¶
type Entry ¶
type Entry struct { SID string `json:"sid" db:"sid"` EID string `json:"eid" db:"eid"` FileTitle string `json:"title" db:"title"` Archive Archive `json:"archive" db:"archive"` Pages Pages `json:"pages" db:"pages"` ModTime dbutil.Time `json:"mod_time" db:"mod_time"` DisplayTitle dbutil.NullString `json:"display_title" db:"display_title"` }
Entry represents an entry which you read, i.e. an archive file
type Series ¶
type Series struct { SID string `json:"sid" db:"sid"` FolderTitle string `json:"folder_title" db:"folder_title"` NumEntries int `json:"num_entries" db:"num_entries"` NumPages int `json:"num_pages" db:"num_pages"` ModTime dbutil.Time `json:"mod_time" db:"mod_time"` // Below are fields which aren't picked up by // the scan and shouldn't overwrite current // values that could exist Tags *Tags `json:"tags" db:"tags"` DisplayTitle dbutil.NullString `json:"display_title" db:"display_title"` }
type Subscription ¶
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
func (Tags) MarshalJSON ¶
func (*Tags) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.