func NewNatsConn(d db.Connection, conn *nats.EncodedConn) Connection {
	return &NatsConn{
		db:   d,
		conn: conn,
	}
}
NewNatsConn initializes the connection to Gnatsd.
It assumes that the client has been initialized by the application context.
package queue
import (
	"github.com/apcera/nats"
	"github.com/calavera/crawler/db"
)
const (
	crawlerTopic = "crawl-url"
	queueName    = "crawler-queue"
)
type NatsConn struct {
	db   db.Connection
	conn *nats.EncodedConn
	proc Processor
}