import "github.com/dreadl0ck/netcap/io"
Implements IO primitives
atomicDelimitedWriter.go chanWriter.go csvWriter.go
AtomicDelimitedWriter writes delimited proto messages synchronized
func NewAtomicDelimitedWriter(w *delimited.Writer) *AtomicDelimitedWriter
NewAtomicDelimitedWriter takes a delimited.WriterAtomic and returns an atomic version
func (a *AtomicDelimitedWriter) PutProto(pb proto.Message) error
PutProto writes a protocol buffer into the writer and returns an error
type ChanWriter struct {
// contains filtered or unexported fields
}
chanWriter writes into a []byte chan
func NewChanWriter() *ChanWriter
TODO make chan buf size configurable
func (w *ChanWriter) Chan() <-chan []byte
func (w *ChanWriter) Close() error
func (w *ChanWriter) Write(p []byte) (int, error)
Package io imports 7 packages (graph) and is imported by 2 packages. Updated 2019-12-28. Refresh now. Tools for package owners.