Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrGroup ¶
ErrGroup implements a group of parallel running tasks allowing to wait for all routines to terminate, as well as error handling.
func NewErrGroup ¶
NewErrGroup creates a new ErrGroup using passed context.
func (*ErrGroup) Go ¶
Go starts a new goroutine. Termination of all functions can be checked via Wait or WaitChan. The ErrGroup closes the internal context when the first go-routine returns with an error.
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
Errors represent a list of errors triggered during the execution of a goka view/processor. Normally, the first error leads to stopping the processor/view, but during shutdown, more errors might occur. DEPRECATED. This will be removed one day, we migrated to the implementation in github.com/hashicorp/go-multierror