Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TimedWriter ¶
TimedWriter is a buffered writer that flushes automatically when a deadline is set and the deadline is exceeded.
func NewTimedWriter ¶
func NewTimedWriter(io io.Writer, bufsize int) *TimedWriter
func (*TimedWriter) Flush ¶
func (w *TimedWriter) Flush() error
func (*TimedWriter) SetDeadline ¶
func (w *TimedWriter) SetDeadline(d time.Duration)
func (*TimedWriter) SetMaxQueue ¶
func (w *TimedWriter) SetMaxQueue(s int)
Click to show internal directories.
Click to hide internal directories.