Ejemplo n.º 1
0
func RunTruncatingBuffer(inputChan <-chan *logmessage.Message, bufferSize uint, logger *gosteno.Logger) buffer.MessageBuffer {
	b := truncatingbuffer.NewTruncatingBuffer(inputChan, bufferSize, logger)
	go b.Run()
	return b
}
Ejemplo n.º 2
0
func runTruncatingBuffer(sink Sink, bufferSize uint, logger *gosteno.Logger) buffer.MessageBuffer {
	b := truncatingbuffer.NewTruncatingBuffer(sink.Channel(), bufferSize, logger)
	go b.Run()
	return b
}