func NewNextReaderSourceMax(reader NextReader, max uint32) Sourcer { hcc := stream.NewHardStopChannelCloser() o := stream.NewBaseOut(stream.CHAN_SLACK) nrs := NextReaderSource{hcc, o, reader, max, sync.Once{}} return &nrs }
func NewInterfaceReaderSource(reader InterfaceReader) Sourcer { nrs := InterfaceReaderSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), reader} return nrs }
func NewZmqSource(addr string, highWaterMark int) *ZmqSource { zmqsrc := ZmqSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), addr, highWaterMark} return &zmqsrc }
func NewUnixgramSource(sockPath string) *UnixgramSource { unixsrc := UnixgramSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), sockPath} return &unixsrc }