Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastWriter ¶
BroadcastWriter accumulate multiple io.WriteCloser by stream.
func New ¶
func New() *BroadcastWriter
func (*BroadcastWriter) AddWriter ¶
func (w *BroadcastWriter) AddWriter(writer io.WriteCloser, stream string)
AddWriter adds new io.WriteCloser for stream. If stream is "", then all writes proceed as is. Otherwise every line from input will be packed to serialized utils.JSONLog.
func (*BroadcastWriter) Clean ¶
func (w *BroadcastWriter) Clean() error
Clean closes and removes all writers. Last non-eol-terminated part of data will be saved.
Click to show internal directories.
Click to hide internal directories.