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 NewServer(addr string, highWaterMark int) *Server {
	zmqsrc := Server{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), addr, highWaterMark, false}

	return &zmqsrc
}
Exemple #4
0
func NewZmqSource(addr string, highWaterMark int) *ZmqSource {
	zmqsrc := ZmqSource{stream.NewHardStopChannelCloser(), stream.NewBaseOut(stream.CHAN_SLACK), addr, highWaterMark}

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

	return &unixsrc
}