Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Halter ¶
type Halter interface { // Halt should tell the worker to stop doing work. Halt(context.Context) error }
Halter represents the behaviour for stopping a service worker.
type MultiError ¶
type MultiError struct{ Errors []error }
MultiError holds a slice of errors and implements the error interface.
func (MultiError) Error ¶
func (e MultiError) Error() string
Error returns a string representation of the MultiError.
func (MultiError) Unwrap ¶
func (e MultiError) Unwrap() error
Unwrap returns an error from Error (or nil if there are no errors). This error returned will further support Unwrap to get the next error, etc. The order will match the order of Errors in the multierror.Error at the time of calling.
func (MultiError) Valid ¶
func (e MultiError) Valid() bool
Valid returns true if the MultiError Errors slice is not empty.
Click to show internal directories.
Click to hide internal directories.