Add initial Go server skeleton with HTTP handlers, middleware, job runner, and stubs
This commit is contained in:
17
internal/http/app.go
Normal file
17
internal/http/app.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user