Documentation
¶
Index ¶
- Variables
- func NewKeepAliveWriter(w io.Writer, interval time.Duration, msg string) *keepAliveWriter
- func NewStreamWriter(w io.Writer, formatter Formatter) *streamWriter
- type DockerErrorCheckWriter
- type FlushingWriter
- type Formatter
- type NoErrorWriter
- type SimpleJsonMessage
- type SimpleJsonMessageEncoderWriter
- type SimpleJsonMessageFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidStreamChunk = errors.New("invalid stream chunk")
Functions ¶
func NewKeepAliveWriter ¶
func NewStreamWriter ¶
Types ¶
type DockerErrorCheckWriter ¶
type FlushingWriter ¶
type FlushingWriter struct { http.ResponseWriter // contains filtered or unexported fields }
FlushingWriter is a custom writer that flushes after writing, if the underlying ResponseWriter is also an http.Flusher.
func (*FlushingWriter) CloseNotify ¶
func (w *FlushingWriter) CloseNotify() <-chan bool
func (*FlushingWriter) Hijack ¶
func (w *FlushingWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack will hijack the underlying TCP connection, if available in the ResponseWriter.
func (*FlushingWriter) Write ¶
func (w *FlushingWriter) Write(data []byte) (written int, err error)
Write writes and flushes the data.
func (*FlushingWriter) WriteHeader ¶
func (w *FlushingWriter) WriteHeader(code int)
func (*FlushingWriter) Wrote ¶
func (w *FlushingWriter) Wrote() bool
Wrote returns whether the method WriteHeader has been called or not.
type NoErrorWriter ¶
type SimpleJsonMessage ¶
type SimpleJsonMessageFormatter ¶
type SimpleJsonMessageFormatter struct {
// contains filtered or unexported fields
}
func (*SimpleJsonMessageFormatter) Close ¶
func (f *SimpleJsonMessageFormatter) Close() error
Click to show internal directories.
Click to hide internal directories.