Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs

This commit is contained in:
Dev
2025-12-13 15:18:04 +00:00
commit 61570cae23
28 changed files with 921 additions and 0 deletions

17
internal/http/app.go Normal file
View File

@@ -0,0 +1,17 @@
package http
import (
"database/sql"
"net/http"
"github.com/example/storage-appliance/internal/service"
)
// App contains injected dependencies for handlers.
type App struct {
DB *sql.DB
DiskSvc service.DiskService
ZFSSvc service.ZFSService
JobRunner service.JobRunner
HTTPClient *http.Client
}