aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/app.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-11 20:24:54 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-11 20:24:54 -0400
commit705fc2f44be5528b07897cd2f020f429024cddf0 (patch)
treeb4c761104ca78b7fa2df573411808491a3f72eb2 /cmd/web/app.go
parent9d5d130038ed90564c3acfb2fd2ff64e3d7b0bd9 (diff)
downloadsteam-export-705fc2f44be5528b07897cd2f020f429024cddf0.tar.gz
steam-export-705fc2f44be5528b07897cd2f020f429024cddf0.tar.xz
Mess around with go-swagger annotations. Remove some commented out code.
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,
}