add scan interval

This commit is contained in:
sentriz
2019-11-24 01:32:17 +00:00
parent 1bfeb117dc
commit a92074ecb4
6 changed files with 53 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ import (
"net/http"
"senan.xyz/g/gonic/db"
"senan.xyz/g/gonic/scanner"
)
type statusWriter struct {
@@ -45,6 +46,7 @@ func statusToBlock(code int) string {
type Controller struct {
DB *db.DB
MusicPath string
Scanner *scanner.Scanner
}
func (c *Controller) WithLogging(next http.Handler) http.Handler {