Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONPrinter ¶
type JSONPrinter struct{}
JSONPrinter is responsible for presenting information to the stdout and stderr as a JSON It implements progress.Notifier and db.Results
func (JSONPrinter) NextError ¶
func (printer JSONPrinter) NextError(err error)
NextError should be used for error from which program cannot recover
func (JSONPrinter) NextStatus ¶
func (printer JSONPrinter) NextStatus(status progress.Status)
NextStatus should be used for regular messages from function execution
type TextPrinter ¶
type TextPrinter struct{}
TextPrinter is responsible for presenting information to the stdout and stderr as a text It implements progress.Notifier and db.Results
func (TextPrinter) NextError ¶
func (printer TextPrinter) NextError(err error)
NextError should be used for error from which program cannot recover
func (TextPrinter) NextStatus ¶
func (printer TextPrinter) NextStatus(status progress.Status)
NextStatus should be used for regular messages from function execution
Click to show internal directories.
Click to hide internal directories.