Documentation ¶
Index ¶
- Constants
- func ProgressBar(max int64, visible bool) *progressbar.ProgressBar
- type Category
- type ContainedLog
- type ContainedSummary
- type DuplicateLog
- type DuplicateSummary
- type ExtensionStatsLog
- type ExtensionStatsSummary
- type IssueType
- type LogFileBuffer
- func (lf *LogFileBuffer) Append(log serializable) *LogFileBuffer
- func (lf *LogFileBuffer) AppendAll(logs []serializable) *LogFileBuffer
- func (lf *LogFileBuffer) AppendUpsertLog(operation UpsertOperation, relativePath string) *LogFileBuffer
- func (lf *LogFileBuffer) AppendVerifyLog(status VerifyStatus, relativePath string, reason error) *LogFileBuffer
- func (lf *LogFileBuffer) AutomaticFlush() bool
- func (lf *LogFileBuffer) Flush()
- func (lf *LogFileBuffer) RequiresFlush() bool
- type Options
- type StyleLog
- type StyleSummary
- type UpsertLog
- type UpsertOperation
- type UpsertSummary
- type VerifyLog
- type VerifyStatus
- type VerifySummary
Constants ¶
View Source
const TimeFormat = "060102.150405"
Variables ¶
This section is empty.
Functions ¶
func ProgressBar ¶
Types ¶
type ContainedLog ¶
func (*ContainedLog) AddRelativePath ¶
func (l *ContainedLog) AddRelativePath(path string)
type ContainedSummary ¶
type DuplicateLog ¶
func (*DuplicateLog) AddRelativePath ¶
func (l *DuplicateLog) AddRelativePath(path string)
type DuplicateSummary ¶
type ExtensionStatsLog ¶ added in v1.1.1
type ExtensionStatsSummary ¶ added in v1.1.1
type LogFileBuffer ¶
type LogFileBuffer struct {
// contains filtered or unexported fields
}
func NewAutomaticLogBuffer ¶
func NewAutomaticLogBuffer(basePath string, category Category, maxItems uint64, options Options) LogFileBuffer
func NewManualLogBuffer ¶
func NewManualLogBuffer(basePath string, category Category, options Options) LogFileBuffer
func (*LogFileBuffer) Append ¶
func (lf *LogFileBuffer) Append(log serializable) *LogFileBuffer
func (*LogFileBuffer) AppendAll ¶
func (lf *LogFileBuffer) AppendAll(logs []serializable) *LogFileBuffer
func (*LogFileBuffer) AppendUpsertLog ¶
func (lf *LogFileBuffer) AppendUpsertLog(operation UpsertOperation, relativePath string) *LogFileBuffer
func (*LogFileBuffer) AppendVerifyLog ¶
func (lf *LogFileBuffer) AppendVerifyLog(status VerifyStatus, relativePath string, reason error) *LogFileBuffer
func (*LogFileBuffer) AutomaticFlush ¶
func (lf *LogFileBuffer) AutomaticFlush() bool
func (*LogFileBuffer) Flush ¶
func (lf *LogFileBuffer) Flush()
func (*LogFileBuffer) RequiresFlush ¶
func (lf *LogFileBuffer) RequiresFlush() bool
type StyleSummary ¶
type UpsertLog ¶
type UpsertLog struct { Created time.Time Operation UpsertOperation RelativePath string }
type UpsertOperation ¶
type UpsertOperation string
const ( NEW UpsertOperation = "NEW" UPDATE UpsertOperation = "UPDATE" DELETE UpsertOperation = "DELETE" SKIP UpsertOperation = "SKIP" )
type UpsertSummary ¶
type UpsertSummary struct { ExecutionTime time.Duration TotalBytes int64 HashedBytes int64 SkippedFiles int64 NewFiles int64 UpdatedFiles int64 DeletedFiles int64 }
func (*UpsertSummary) AddHashedBytes ¶
func (us *UpsertSummary) AddHashedBytes(bytes int64)
type VerifyLog ¶
type VerifyLog struct { Created time.Time Status VerifyStatus RelativePath string Reason error }
type VerifyStatus ¶
type VerifyStatus string
const ( OK VerifyStatus = "OK" ERROR VerifyStatus = "ERROR" )
Click to show internal directories.
Click to hide internal directories.