Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyWithBackoff ¶ added in v0.0.99
ApplyWithBackoff tries to apply the specified function using an exponential backoff algorithm. If the function eventually succeed nil is returned, otherwise the error returned by f.
func Contains ¶ added in v0.0.99
Contains checks whether the specified string is contained in the given string slice. Returns true if it does, false otherwise
func IsNotEmpty ¶ added in v0.0.118
IsNotEmpty checks if value stored at given key is empty. if it is empty it returns an error.
func NameOfFunction ¶ added in v0.0.118
NameOfFunction gives name of the current function given program counter.
Types ¶
type MultiError ¶ added in v0.0.118
type MultiError struct {
Errors []error
}
MultiError is a collection of errors.
func (*MultiError) Collect ¶ added in v0.0.118
func (m *MultiError) Collect(err error)
Collect appends an error to this MultiError.
func (*MultiError) Empty ¶ added in v0.0.118
func (m *MultiError) Empty() bool
Empty returns true if current MuiltiError is empty, false otherwise.
func (MultiError) ToError ¶ added in v0.0.118
func (m MultiError) ToError() error
ToError returns a single error made up of all errors in this MultiError.