Documentation
¶
Overview ¶
Package writerset implements a mechanism to add and remove writers from a construct similar to io.MultiWriter. Manually vendored from http://github.com/stephens2424/writerset
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrPartialWrite ¶
ErrPartialWrite encapsulates an error from a WriterSet.
func (ErrPartialWrite) Error ¶
func (e ErrPartialWrite) Error() string
Error returns the error string from the underlying error.
type WriterSet ¶
type WriterSet struct {
// contains filtered or unexported fields
}
WriterSet wraps multiple writers like io.MultiWriter, but such that individual writers are easy to add or remove as necessary.
func (*WriterSet) Flush ¶
func (ws *WriterSet) Flush()
Flush implements http.Flusher by calling flush on all the underlying writers if they are also http.Flushers.
Click to show internal directories.
Click to hide internal directories.