helper

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NOTE: This is the only format time marshaling supports, it is not configurable...
	DateFormat           string = time.RFC3339
	LogMessageEmptyInput        = "Returning early after receiving empty input"
)

Variables

This section is empty.

Functions

func NewDefaultLogger

func NewDefaultLogger(logFile string, consoleLogLevel log.Level, fileLogLevel log.Level, stderr io.Writer) *log.Logger

Types

type ConsoleLoggerHook

type ConsoleLoggerHook struct {
	Formatter log.Formatter
	LogLevels []log.Level
	Writer    io.Writer
}

func (*ConsoleLoggerHook) Fire

func (hook *ConsoleLoggerHook) Fire(entry *log.Entry) error

func (*ConsoleLoggerHook) Levels

func (hook *ConsoleLoggerHook) Levels() []log.Level

type DuplicateInsertionError added in v0.6.0

type DuplicateInsertionError struct {
	Inner error
}

func (DuplicateInsertionError) As added in v0.6.0

func (err DuplicateInsertionError) As(target any) bool

func (DuplicateInsertionError) Error added in v0.6.0

func (err DuplicateInsertionError) Error() string

func (DuplicateInsertionError) Is added in v0.6.0

func (err DuplicateInsertionError) Is(other error) bool

func (DuplicateInsertionError) Unwrap added in v0.6.0

func (err DuplicateInsertionError) Unwrap() error

type EmptyInputError added in v0.6.0

type EmptyInputError struct{}

func (EmptyInputError) As added in v0.6.0

func (err EmptyInputError) As(target any) bool

func (EmptyInputError) Error added in v0.6.0

func (err EmptyInputError) Error() string

func (EmptyInputError) Is added in v0.6.0

func (err EmptyInputError) Is(other error) bool

type IneffectiveOperationError added in v0.6.0

type IneffectiveOperationError struct {
	Inner error
}

func (IneffectiveOperationError) As added in v0.6.0

func (err IneffectiveOperationError) As(target any) bool

func (IneffectiveOperationError) Error added in v0.6.0

func (err IneffectiveOperationError) Error() string

func (IneffectiveOperationError) Is added in v0.6.0

func (err IneffectiveOperationError) Is(other error) bool

func (IneffectiveOperationError) Unwrap added in v0.6.0

func (err IneffectiveOperationError) Unwrap() error

type NilInputError added in v0.6.0

type NilInputError struct {
	BadFieldOrParameter string
}

func (NilInputError) As added in v0.6.0

func (err NilInputError) As(target any) bool

func (NilInputError) Error added in v0.6.0

func (err NilInputError) Error() string

func (NilInputError) Is added in v0.6.0

func (err NilInputError) Is(other error) bool

type NonExistentDependencyError added in v0.6.0

type NonExistentDependencyError struct {
	Inner error
}

func (NonExistentDependencyError) As added in v0.6.0

func (err NonExistentDependencyError) As(target any) bool

func (NonExistentDependencyError) Error added in v0.6.0

func (err NonExistentDependencyError) Error() string

func (NonExistentDependencyError) Is added in v0.6.0

func (err NonExistentDependencyError) Is(other error) bool

func (NonExistentDependencyError) Unwrap added in v0.6.0

func (err NonExistentDependencyError) Unwrap() error

type NonExistentPrimaryDataError added in v0.6.0

type NonExistentPrimaryDataError struct{}

func (NonExistentPrimaryDataError) As added in v0.6.0

func (err NonExistentPrimaryDataError) As(target any) bool

func (NonExistentPrimaryDataError) Error added in v0.6.0

func (err NonExistentPrimaryDataError) Error() string

func (NonExistentPrimaryDataError) Is added in v0.6.0

func (err NonExistentPrimaryDataError) Is(other error) bool

type NopUpdaterError added in v0.6.0

type NopUpdaterError struct{}

func (NopUpdaterError) As added in v0.6.0

func (err NopUpdaterError) As(target any) bool

func (NopUpdaterError) Error added in v0.6.0

func (err NopUpdaterError) Error() string

func (NopUpdaterError) Is added in v0.6.0

func (err NopUpdaterError) Is(other error) bool

Jump to

Keyboard shortcuts

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