Documentation ¶
Overview ¶
Package pipe has functions for pipe channel handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close(pipe chan interface{}, err error)
Close closes a pipe and optionally sends an error
func ReadErrors ¶
func ReadErrors(pipe chan interface{}) []error
ReadErrors selects all received errors and returns them. This is helpful for synchronous migration functions.
func WaitAndRedirect ¶
WaitAndRedirect waits for pipe to be closed and redirects all messages from pipe to redirectPipe while it waits. It also checks if there was an interrupt send and will quit gracefully if yes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.