func (p *Processor) ScansRemaining() (int, error) {
	return p.store.GetScansRemaining()
}
ScansRemaining returns the amount of scans remaining
package processor
import (
	"database/sql"
	"fmt"
	"os"
	"sync/atomic"
	"time"
	"github.com/cloudbox/autoscan"
	"github.com/cloudbox/autoscan/migrate"
	"golang.org/x/sync/errgroup"
)
type Config struct {
	Anchors    []string
	MinimumAge time.Duration
	Db *sql.DB
	Mg *migrate.Migrator
}
func New(c Config) (*Processor, error) {
	store, err := newDatastore(c.Db, c.Mg)
	if err != nil {
		return nil, err
	}
	proc := &Processor{
		anchors:    c.Anchors,
		minimumAge: c.MinimumAge,
		store:      store,
	}
	return proc, nil
}
type Processor struct {
	anchors    []string
	minimumAge time.Duration
	store      *datastore
	processed  int64
}
func (p *Processor) Add(scans ...autoscan.Scan) error {
	return p.store.Upsert(scans)
}