refactor: rename Go module to bookmarkmanager

This commit is contained in:
2026-08-06 02:44:43 +07:00
parent 3149dc0c26
commit f30d4cc7cb
11 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"time"
"mangabm/backend/internal/store"
"bookmarkmanager/backend/internal/store"
)
// Handler serves the userscript-facing JSON bookmark API.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/url"
"time"
"mangabm/backend/internal/store"
"bookmarkmanager/backend/internal/store"
)
// Fetcher retrieves a series page. It exists as an interface so tests can inject
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
"mangabm/backend/internal/store"
"bookmarkmanager/backend/internal/store"
)
// newTestStore opens a fresh SQLite store in a temp dir.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"mangabm/backend/internal/store"
"bookmarkmanager/backend/internal/store"
)
// latestChapter is the newest chapter a series page advertises.
+2 -2
View File
@@ -14,13 +14,13 @@ import (
)
const (
CookieName = "mangabm_session"
CookieName = "bmgr_session"
// 60 days: long enough that a phone stays logged in between reading spells.
sessionTTL = 60 * 24 * time.Hour
// Domain separation, so the session key can never collide with any other
// use of the secrets it is derived from. Changing this string logs
// everyone out.
sessionKeyPurpose = "mangabm-web-session-v1"
sessionKeyPurpose = "bmgr-web-session-v1"
)
// Key derives the cookie-signing key from both secrets. Sessions are
+2 -2
View File
@@ -14,8 +14,8 @@ import (
"strings"
"time"
"mangabm/backend/internal/session"
"mangabm/backend/internal/store"
"bookmarkmanager/backend/internal/session"
"bookmarkmanager/backend/internal/store"
)
//go:embed templates