summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2025-09-11 21:44:54 +0100
committerLeonardo Bishop <me@leonardobishop.net>2025-09-11 21:44:54 +0100
commit1b7c07d9bbfb7984536a3aeade0f543251f1a666 (patch)
tree31e1ab4c3aefca8c405c2b9299e81a6a5b5da33c
parentc314e7d812f8d5e2a9a8114f525c3c9cbb73bf85 (diff)
Rename to stash
-rw-r--r--.gitignore2
-rw-r--r--Makefile2
-rw-r--r--api/handlers/html.go6
-rw-r--r--api/handlers/record.go4
-rw-r--r--api/router.go10
-rw-r--r--go.mod2
-rw-r--r--main.go12
-rw-r--r--pkg/entries/entries.go2
-rw-r--r--pkg/html/service.go2
9 files changed, 21 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index 139b7e9..04960f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-history
+stash
database.db
config.yaml
diff --git a/Makefile b/Makefile
index acd1427..cf35df8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
all: build
build:
- CGO_ENABLED=1 go build -ldflags "-X 'git.leonardobishop.net/history/internal/constants.SysConfPrefix=/etc/history/'" -o history main.go
+ CGO_ENABLED=1 go build -ldflags "-X 'git.leonardobishop.net/stash/internal/constants.SysConfPrefix=/etc/stash/'" -o stash main.go
diff --git a/api/handlers/html.go b/api/handlers/html.go
index 1ea166f..88407bf 100644
--- a/api/handlers/html.go
+++ b/api/handlers/html.go
@@ -3,8 +3,8 @@ package handlers
import (
"net/http"
- "git.leonardobishop.net/history/pkg/entries"
- "git.leonardobishop.net/history/pkg/html"
+ "git.leonardobishop.net/stash/pkg/entries"
+ "git.leonardobishop.net/stash/pkg/html"
)
const style = `<style>
@@ -70,7 +70,7 @@ func GetEntriesHtml(entriesService entries.Service, htmlService html.Service) ht
html = `<!DOCTYPE html>
<html>
<head>
-<title>History</title>
+<title>stash</title>
` + style + `
</head>
<body>` + html + `</body>
diff --git a/api/handlers/record.go b/api/handlers/record.go
index 0f98f11..cccce6b 100644
--- a/api/handlers/record.go
+++ b/api/handlers/record.go
@@ -4,8 +4,8 @@ import (
"crypto/subtle"
"net/http"
- "git.leonardobishop.net/history/api/dto"
- "git.leonardobishop.net/history/pkg/entries"
+ "git.leonardobishop.net/stash/api/dto"
+ "git.leonardobishop.net/stash/pkg/entries"
)
func RecordEntry(service entries.Service, token string) http.HandlerFunc {
diff --git a/api/router.go b/api/router.go
index c18fed8..076beec 100644
--- a/api/router.go
+++ b/api/router.go
@@ -3,11 +3,11 @@ package api
import (
"net/http"
- "git.leonardobishop.net/history/api/handlers"
- "git.leonardobishop.net/history/api/middleware"
- "git.leonardobishop.net/history/internal/config"
- "git.leonardobishop.net/history/pkg/entries"
- "git.leonardobishop.net/history/pkg/html"
+ "git.leonardobishop.net/stash/api/handlers"
+ "git.leonardobishop.net/stash/api/middleware"
+ "git.leonardobishop.net/stash/internal/config"
+ "git.leonardobishop.net/stash/pkg/entries"
+ "git.leonardobishop.net/stash/pkg/html"
)
type ApiServices struct {
diff --git a/go.mod b/go.mod
index c336356..1d4da34 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module git.leonardobishop.net/history
+module git.leonardobishop.net/stash
go 1.24.6
diff --git a/main.go b/main.go
index 4250a24..04864e7 100644
--- a/main.go
+++ b/main.go
@@ -6,12 +6,12 @@ import (
"net/http"
"os"
- "git.leonardobishop.net/history/api"
- "git.leonardobishop.net/history/internal/config"
- "git.leonardobishop.net/history/internal/constants"
- "git.leonardobishop.net/history/pkg/database"
- "git.leonardobishop.net/history/pkg/entries"
- "git.leonardobishop.net/history/pkg/html"
+ "git.leonardobishop.net/stash/api"
+ "git.leonardobishop.net/stash/internal/config"
+ "git.leonardobishop.net/stash/internal/constants"
+ "git.leonardobishop.net/stash/pkg/database"
+ "git.leonardobishop.net/stash/pkg/entries"
+ "git.leonardobishop.net/stash/pkg/html"
)
func main() {
diff --git a/pkg/entries/entries.go b/pkg/entries/entries.go
index 2b0967b..0764f93 100644
--- a/pkg/entries/entries.go
+++ b/pkg/entries/entries.go
@@ -5,7 +5,7 @@ import (
"database/sql"
"fmt"
- "git.leonardobishop.net/history/pkg/database/sqlc"
+ "git.leonardobishop.net/stash/pkg/database/sqlc"
)
type Service interface {
diff --git a/pkg/html/service.go b/pkg/html/service.go
index a39c90d..e078136 100644
--- a/pkg/html/service.go
+++ b/pkg/html/service.go
@@ -3,7 +3,7 @@ package html
import (
"time"
- "git.leonardobishop.net/history/pkg/database/sqlc"
+ "git.leonardobishop.net/stash/pkg/database/sqlc"
)
type Service interface {