diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-09-11 21:44:54 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-09-11 21:44:54 +0100 |
| commit | 1b7c07d9bbfb7984536a3aeade0f543251f1a666 (patch) | |
| tree | 31e1ab4c3aefca8c405c2b9299e81a6a5b5da33c | |
| parent | c314e7d812f8d5e2a9a8114f525c3c9cbb73bf85 (diff) | |
Rename to stash
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | api/handlers/html.go | 6 | ||||
| -rw-r--r-- | api/handlers/record.go | 4 | ||||
| -rw-r--r-- | api/router.go | 10 | ||||
| -rw-r--r-- | go.mod | 2 | ||||
| -rw-r--r-- | main.go | 12 | ||||
| -rw-r--r-- | pkg/entries/entries.go | 2 | ||||
| -rw-r--r-- | pkg/html/service.go | 2 |
9 files changed, 21 insertions, 21 deletions
@@ -1,4 +1,4 @@ -history +stash database.db config.yaml @@ -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 { @@ -1,4 +1,4 @@ -module git.leonardobishop.net/history +module git.leonardobishop.net/stash go 1.24.6 @@ -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 { |
