Exemple #1
0
func NewNextReaderSourceMax(reader NextReader, max uint32) Sourcer {

	hcc := stream.NewHardStopChannelCloser()
	o := stream.NewBaseOut(stream.CHAN_SLACK)
	nrs := NextReaderSource{hcc, o, reader, max}
	return &nrs
}
func NewInterfaceReaderSource(reader InterfaceReader) Sourcer {
	nrs := InterfaceReaderSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), reader}
	return nrs
}
Exemple #3
0
func NewWriterSinkLengthDelim(writer io.Writer) Sinker {
	ws := WriterSink{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), lengthDelimValueWriter{}, writer}
	return ws
}
Exemple #4
0
func NewClient(addr string, hwm int) *Client {
	buf := util.NewSequentialBufferChanImpl(hwm + 1)
	return &Client{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), addr, hwm, buf, 0, false, nil}
}
Exemple #5
0
func NewMultiPartWriterSink(writer io.Writer) *MultiPartWriterSink {
	ws := &MultiPartWriterSink{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), lengthDelimMultiPartValueWriter{}, writer, nil}
	return ws
}
Exemple #6
0
func NewWriterSinkAddNl(writer io.Writer) Sinker {
	ws := WriterSink{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), addNlValueWriter{}, writer}
	return ws
}
Exemple #7
0
func NewZmqSource(addr string, highWaterMark int) *ZmqSource {
	zmqsrc := ZmqSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), addr, highWaterMark}

	return &zmqsrc
}
func NewInterfaceWriterSink(writer InterfaceWriter) Sinker {
	iws := InterfaceWriterSink{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), writer}
	return iws
}
Exemple #9
0
func NewZmqSink(addr string, highWaterMark int) sink.Sinker {
	return ZmqSink{stream.NewHardStopChannelCloser(), stream.NewBaseIn(stream.CHAN_SLACK), addr, highWaterMark}
}
Exemple #10
0
func NewServer(addr string, highWaterMark int) *Server {
	zmqsrc := Server{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), addr, highWaterMark, false}

	return &zmqsrc
}
Exemple #11
0
func NewUnixgramSource(sockPath string) *UnixgramSource {
	unixsrc := UnixgramSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), sockPath}

	return &unixsrc
}