utils

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInfiniteProgressBar

func CreateInfiniteProgressBar(description string) *progressbar.ProgressBar

func CreateProgressBar

func CreateProgressBar(max int, description string) *progressbar.ProgressBar

func FinalizeProgressBar

func FinalizeProgressBar(progressBar *progressbar.ProgressBar, max int)

func IncrementProgressBar

func IncrementProgressBar(progressBar *progressbar.ProgressBar)

func WrapError

func WrapError(msg string, err error) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL