Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskManager ¶
type DiskManager struct {
// contains filtered or unexported fields
}
func NewDiskManager ¶
func NewDiskManager(dir string, keepLogs bool) *DiskManager
func (*DiskManager) AddTask ¶
func (lm *DiskManager) AddTask(slug string) (TaskLogger, error)
func (*DiskManager) Close ¶
func (lm *DiskManager) Close() error
func (*DiskManager) LogFiles ¶
func (lm *DiskManager) LogFiles() []string
type FileTaskLogger ¶
type FileTaskLogger struct {
// contains filtered or unexported fields
}
func (*FileTaskLogger) Close ¶
func (tl *FileTaskLogger) Close() error
func (*FileTaskLogger) Log ¶
func (tl *FileTaskLogger) Log(s string)
func (*FileTaskLogger) Logf ¶
func (tl *FileTaskLogger) Logf(format string, a ...interface{})
func (*FileTaskLogger) MarkErrored ¶
func (tl *FileTaskLogger) MarkErrored()
func (*FileTaskLogger) Path ¶
func (tl *FileTaskLogger) Path() string
func (*FileTaskLogger) PrefixWriter ¶
func (tl *FileTaskLogger) PrefixWriter(prefix string) io.Writer
type LogManager ¶
type LogManager interface { AddTask(string) (TaskLogger, error) Close() error LogFiles() []string }
type NoopTaskLogger ¶
type NoopTaskLogger struct{}
func (*NoopTaskLogger) Close ¶
func (tl *NoopTaskLogger) Close() error
func (*NoopTaskLogger) Log ¶
func (tl *NoopTaskLogger) Log(s string)
func (*NoopTaskLogger) Logf ¶
func (tl *NoopTaskLogger) Logf(format string, a ...interface{})
func (*NoopTaskLogger) MarkErrored ¶
func (tl *NoopTaskLogger) MarkErrored()
func (*NoopTaskLogger) Path ¶
func (tl *NoopTaskLogger) Path() string
func (*NoopTaskLogger) PrefixWriter ¶
func (tl *NoopTaskLogger) PrefixWriter(prefix string) io.Writer
Click to show internal directories.
Click to hide internal directories.