aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/app.go')
-rw-r--r--cmd/web/app.go25
1 files changed, 6 insertions, 19 deletions
diff --git a/cmd/web/app.go b/cmd/web/app.go
index 578c44d..11df3ac 100644
--- a/cmd/web/app.go
+++ b/cmd/web/app.go
@@ -7,19 +7,8 @@ import (
"riedstra.dev/mitch/steam-export/steam"
)
-// // statusInfo represents the internal status of game installation
-// type statusInfo struct {
-// sync.RWMutex
-// Running bool
-// Error error
-// Url string
-// Transferred int64
-// Size int64
-// Start *time.Time
-// }
-
-// App binds together the steam library, templates, and channel for install
-// requests as well as most the app specific http handlers.
+// App binds together the steam library, templates filesystem, handlers,
+// etc
type App struct {
Library *steam.Library
@@ -35,8 +24,7 @@ type App struct {
// download chan string
}
-// NewApp sets up the steam library for us as well as parses the embedded
-// template
+// NewApp sets up the steam library for us
func NewApp(libPath string) (*App, error) {
lib, err := steam.NewLibrary(libPath)
if err != nil {
@@ -44,10 +32,9 @@ func NewApp(libPath string) (*App, error) {
}
a := &App{
- Library: lib,
- Version: Version,
- ShareLink: getShareLink(),
- // download: make(chan string),
+ Library: lib,
+ Version: Version,
+ ShareLink: getShareLink(),
templateFS: TemplateFS,
staticFS: StaticFS,
}