Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "local build"
Version is the current version of the driver.
Functions ¶
func MultiError ¶
MultiError combines multiple errors into a single error. If there are no errors, nil is returned. If there is 1 error, it is returned. Otherwise, they are combined.
func RolledUpErrorMessage ¶
RolledUpErrorMessage gets a flattened error message.
func UnwrapError ¶
UnwrapError attempts to unwrap the error down to its root cause.
func WrapErrorf ¶
WrapErrorf wraps an error with a message.
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
Semaphore is a synchronization primitive that controls access to a common resource.
func NewSemaphore ¶
NewSemaphore creates a new semaphore.
type WrappedError ¶
type WrappedError interface { // Message gets the basic message of the error. Message() string // Inner gets the inner error if one exists. Inner() error }
WrappedError represents an error that contains another error.
Click to show internal directories.
Click to hide internal directories.