From c00f6a975079bf6f740a61419e74827b3c2c3270 Mon Sep 17 00:00:00 2001 From: Evan Buss Date: Wed, 10 Jul 2024 01:27:49 +0000 Subject: [PATCH] chore: rename project No longer "Kobo" specific --- dockerfile | 4 ++-- go.mod | 2 +- html/feed.go | 2 +- html/html.go | 2 +- main.go | 6 +++--- server.go | 5 +---- 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/dockerfile b/dockerfile index 425574c..678c717 100644 --- a/dockerfile +++ b/dockerfile @@ -14,7 +14,7 @@ RUN wget https://web.archive.org/web/20150803131026if_/https://kindlegen.s3.amaz cp kindlegen/kindlegen /usr/local/bin/kindlegen && \ chmod +x /usr/local/bin/kindlegen -WORKDIR /src/kobo-opds-proxy/app/ +WORKDIR /src/opds-proxy/app/ COPY go.mod . COPY go.sum . @@ -30,6 +30,6 @@ FROM gcr.io/distroless/static COPY --from=base /usr/local/bin/kepubify /usr/local/bin/kepubify COPY --from=base /usr/local/bin/kindlegen /usr/local/bin/kindlegen -COPY --from=base /src/kobo-opds-proxy/app/opds-proxy . +COPY --from=base /src/opds-proxy/app/opds-proxy . CMD ["./opds-proxy"] \ No newline at end of file diff --git a/go.mod b/go.mod index de434cd..0e070ad 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/evan-buss/kobo-opds-proxy +module github.com/evan-buss/opds-proxy go 1.22 diff --git a/html/feed.go b/html/feed.go index b8cc713..51b2970 100644 --- a/html/feed.go +++ b/html/feed.go @@ -5,7 +5,7 @@ import ( "net/url" "strings" - "github.com/evan-buss/kobo-opds-proxy/opds" + "github.com/evan-buss/opds-proxy/opds" ) type FeedViewModel struct { diff --git a/html/html.go b/html/html.go index 11ae035..717981a 100644 --- a/html/html.go +++ b/html/html.go @@ -5,7 +5,7 @@ import ( "html/template" "io" - "github.com/evan-buss/kobo-opds-proxy/opds" + "github.com/evan-buss/opds-proxy/opds" ) //go:embed * diff --git a/main.go b/main.go index bc9b4a9..4cba5c0 100644 --- a/main.go +++ b/main.go @@ -13,9 +13,9 @@ import ( "strings" "time" - "github.com/evan-buss/kobo-opds-proxy/convert" - "github.com/evan-buss/kobo-opds-proxy/html" - "github.com/evan-buss/kobo-opds-proxy/opds" + "github.com/evan-buss/opds-proxy/convert" + "github.com/evan-buss/opds-proxy/html" + "github.com/evan-buss/opds-proxy/opds" ) func main() { diff --git a/server.go b/server.go index e68f2d4..44daefe 100644 --- a/server.go +++ b/server.go @@ -1,11 +1,10 @@ package main import ( - "fmt" "net/http" "os" - "github.com/evan-buss/kobo-opds-proxy/html" + "github.com/evan-buss/opds-proxy/html" ) type Middleware func(http.HandlerFunc) http.HandlerFunc @@ -21,8 +20,6 @@ func NewServer() *Server { port = "8080" } - fmt.Println(os.Getenv("PATH")) - router := http.NewServeMux() router.HandleFunc("GET /{$}", handleHome()) router.HandleFunc("GET /feed", handleFeed("tmp/"))