Example #1
0
// Main method - send the line to relevant plugins
func (dis *Dispatcher) Dispatch(l *line.Line) {

	var err error
	err = dis.queue.Rpush(QUEUE_PREFIX, l.JSON())
	if err != nil {
		glog.Fatal("Error writing (RPUSH) to queue. ", err)
	}
	dis.limitQueue(QUEUE_PREFIX)
}