Documentation ¶
Index ¶
Constants ¶
View Source
const ( EntryLevelError = EntryLevel("error") EntryLevelWarning = EntryLevel("warning") EntryLevelSkip = EntryLevel("skip") EntryLevelSuccess = EntryLevel("success") )
View Source
const ( EntryStatusOutdated = EntryStatus("Outdated file") EntryStatusNotIncluded = EntryStatus("Not included") EntryStatusExcluded = EntryStatus("Excluded") EntryStatusNeverDl = EntryStatus("Never downloaded") EntryStatusAlreadyDl = EntryStatus("Already downloaded") EntryStatusSizeDiff = EntryStatus("Exists but size is different") EntryStatusHashExists = EntryStatus("Hash sum exists") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Journal
}
Client represents an active journal object
type Entry ¶ added in v7.1.0
type Entry struct { File string `json:"file,omitempty"` Status EntryStatus `json:"status,omitempty"` Level EntryLevel `json:"level,omitempty"` Text string `json:"text,omitempty"` }
Entry represents a journal entry
type EntryStatus ¶ added in v7.1.0
type EntryStatus string
EntryStatus represents entry status
func (*EntryStatus) IsSkipped ¶ added in v7.1.0
func (es *EntryStatus) IsSkipped() bool
type Journal ¶ added in v7.1.0
type Journal struct { ServerHost string `json:"-"` Entries []Entry `json:"entries,omitempty"` Count struct { Success int `json:"success,omitempty"` Error int `json:"error,omitempty"` Skip int `json:"skip,omitempty"` } `json:"count,omitempty"` Status string `json:"status,omitempty"` Duration time.Duration `json:"duration,omitempty"` }
Journal holds journal entries
func (Journal) MarshalJSON ¶ added in v7.1.0
Click to show internal directories.
Click to hide internal directories.