Integrating ZFS
Some checks failed
CI / test-build (push) Failing after 59s

This commit is contained in:
2025-12-14 23:00:18 +07:00
parent a6da313dfc
commit 461edbc970
4 changed files with 622 additions and 22 deletions

View File

@@ -6,6 +6,8 @@ import (
"net/http"
"path/filepath"
"time"
"gitea.avt.data-center.id/othman.suseno/atlas/internal/zfs"
)
type Config struct {
@@ -18,6 +20,7 @@ type App struct {
cfg Config
tmpl *template.Template
mux *http.ServeMux
zfs *zfs.Service
}
func New(cfg Config) (*App, error) {
@@ -37,6 +40,7 @@ func New(cfg Config) (*App, error) {
cfg: cfg,
tmpl: tmpl,
mux: http.NewServeMux(),
zfs: zfs.New(),
}
a.routes()