Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidStreamChunk = errors.New("invalid stream chunk")
Functions ¶
func NewStreamWriter ¶
Types ¶
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) 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{}
Click to show internal directories.
Click to hide internal directories.