Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
ByteChannel chan []byte
}
Writer is an io.writer-like object that "writes" to a channel instead of a buffer or file, etc. It is handy for varlink endpoints when needing to handle endpoints that do logging "real-time"
func NewChannelWriter ¶
func NewChannelWriter() *Writer
NewChannelWriter creates a new channel writer and adds a byte slice channel into it.
Click to show internal directories.
Click to hide internal directories.