Documentation
¶
Index ¶
- func CreateInfiniteProgressBar(description string) *progressbar.ProgressBar
- func CreateProgressBar(max int, description string) *progressbar.ProgressBar
- func FinalizeProgressBar(progressBar *progressbar.ProgressBar, max int)
- func IncrementProgressBar(progressBar *progressbar.ProgressBar)
- func WrapError(msg string, err error) error
- type LoggingService
- func (loggingService *LoggingService) Console(msg string)
- func (loggingService *LoggingService) ConsoleFatal(msg string)
- func (loggingService *LoggingService) ConsoleProgress(msg string)
- func (loggingService *LoggingService) ConsoleWarn(msg string)
- func (loggingService *LoggingService) Debug(msg string)
- func (loggingService *LoggingService) Fatal(msg string)
- func (loggingService *LoggingService) FatalFromError(err error)
- func (loggingService *LoggingService) Info(msg string)
- func (loggingService *LoggingService) InitializeLogger(logFilePath string, debug bool, properlyTerminateApp func())
- func (loggingService *LoggingService) SyncLogger() error
- func (loggingService *LoggingService) Warn(msg string)
- func (loggingService *LoggingService) WarnFromError(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateInfiniteProgressBar ¶
func CreateInfiniteProgressBar(description string) *progressbar.ProgressBar
func CreateProgressBar ¶
func FinalizeProgressBar ¶
func FinalizeProgressBar(progressBar *progressbar.ProgressBar, max int)
func IncrementProgressBar ¶
func IncrementProgressBar(progressBar *progressbar.ProgressBar)
Types ¶
type LoggingService ¶
type LoggingService struct {
// contains filtered or unexported fields
}
func GetLoggingService ¶
func GetLoggingService() *LoggingService
func (*LoggingService) Console ¶
func (loggingService *LoggingService) Console(msg string)
func (*LoggingService) ConsoleFatal ¶
func (loggingService *LoggingService) ConsoleFatal(msg string)
func (*LoggingService) ConsoleProgress ¶
func (loggingService *LoggingService) ConsoleProgress(msg string)
func (*LoggingService) ConsoleWarn ¶
func (loggingService *LoggingService) ConsoleWarn(msg string)
func (*LoggingService) Debug ¶
func (loggingService *LoggingService) Debug(msg string)
func (*LoggingService) Fatal ¶
func (loggingService *LoggingService) Fatal(msg string)
func (*LoggingService) FatalFromError ¶
func (loggingService *LoggingService) FatalFromError(err error)
func (*LoggingService) Info ¶
func (loggingService *LoggingService) Info(msg string)
func (*LoggingService) InitializeLogger ¶
func (loggingService *LoggingService) InitializeLogger(logFilePath string, debug bool, properlyTerminateApp func())
func (*LoggingService) SyncLogger ¶
func (loggingService *LoggingService) SyncLogger() error
func (*LoggingService) Warn ¶
func (loggingService *LoggingService) Warn(msg string)
func (*LoggingService) WarnFromError ¶
func (loggingService *LoggingService) WarnFromError(err error)
Click to show internal directories.
Click to hide internal directories.