Chore: project rename
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,5 @@ | |||||||
| .aider* | .aider* | ||||||
| golias | golias | ||||||
|  | gralias | ||||||
| store.json | store.json | ||||||
| config.toml | config.toml | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @@ -2,7 +2,7 @@ | |||||||
|  |  | ||||||
| run: | run: | ||||||
| 	go build | 	go build | ||||||
| 	./golias start | 	./gralias start | ||||||
|  |  | ||||||
| init: | init: | ||||||
| 	go mod init | 	go mod init | ||||||
| @@ -26,10 +26,10 @@ gen: | |||||||
| 	go generate ./... | 	go generate ./... | ||||||
|  |  | ||||||
| build-container: | build-container: | ||||||
| 	docker build -t golias:master . | 	docker build -t gralias:master . | ||||||
|  |  | ||||||
| stop-container: | stop-container: | ||||||
| 	docker rm -f golias 2>/dev/null && echo "old container removed" | 	docker rm -f gralias 2>/dev/null && echo "old container removed" | ||||||
|  |  | ||||||
| run-container: stop-container | run-container: stop-container | ||||||
| 	docker run --name=golias -v $(CURDIR)/store.json:/root/store.json -p 0.0.0.0:3000:3000 -d golias:master | 	docker run --name=gralias -v $(CURDIR)/store.json:/root/store.json -p 0.0.0.0:3000:3000 -d gralias:master | ||||||
|   | |||||||
| @@ -5,11 +5,11 @@ import ( | |||||||
| 	"encoding/json" | 	"encoding/json" | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/broker" | 	"gralias/broker" | ||||||
| 	"golias/llmapi" | 	"gralias/llmapi" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"golias/utils" | 	"gralias/utils" | ||||||
| 	"golias/wordloader" | 	"gralias/wordloader" | ||||||
| 	"strings" | 	"strings" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,8 +6,8 @@ import ( | |||||||
| 	"encoding/base64" | 	"encoding/base64" | ||||||
| 	"encoding/json" | 	"encoding/json" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"golias/utils" | 	"gralias/utils" | ||||||
| 	"html/template" | 	"html/template" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"strings" | 	"strings" | ||||||
|   | |||||||
| @@ -3,8 +3,8 @@ package handlers | |||||||
| import ( | import ( | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/llmapi" | 	"gralias/llmapi" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"html/template" | 	"html/template" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import ( | |||||||
| 	"context" | 	"context" | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"html/template" | 	"html/template" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| ) | ) | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| package handlers | package handlers | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"golias/broker" | 	"gralias/broker" | ||||||
| 	"golias/config" | 	"gralias/config" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"golias/pkg/cache" | 	"gralias/pkg/cache" | ||||||
| 	"html/template" | 	"html/template" | ||||||
| 	"log/slog" | 	"log/slog" | ||||||
| 	"net/http" | 	"net/http" | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ import ( | |||||||
| 	"crypto/hmac" | 	"crypto/hmac" | ||||||
| 	"crypto/sha256" | 	"crypto/sha256" | ||||||
| 	"encoding/base64" | 	"encoding/base64" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4,10 +4,10 @@ import ( | |||||||
| 	"encoding/json" | 	"encoding/json" | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/broker" | 	"gralias/broker" | ||||||
| 	"golias/config" | 	"gralias/config" | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"golias/pkg/cache" | 	"gralias/pkg/cache" | ||||||
| 	"io" | 	"io" | ||||||
| 	"log/slog" | 	"log/slog" | ||||||
| 	"net/http" | 	"net/http" | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.go
									
									
									
									
									
								
							| @@ -2,8 +2,8 @@ package main | |||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/config" | 	"gralias/config" | ||||||
| 	"golias/handlers" | 	"gralias/handlers" | ||||||
| 	"log/slog" | 	"log/slog" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"time" | 	"time" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ package models | |||||||
| import ( | import ( | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"golias/utils" | 	"gralias/utils" | ||||||
| 	"time" | 	"time" | ||||||
|  |  | ||||||
| 	"github.com/rs/xid" | 	"github.com/rs/xid" | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| package wordloader | package wordloader | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"golias/models" | 	"gralias/models" | ||||||
| 	"math/rand/v2" | 	"math/rand/v2" | ||||||
| 	"os" | 	"os" | ||||||
| 	"strings" | 	"strings" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder