Rename to match repo name
This commit is contained in:
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module git.hrafn.xyz/aether/notes
|
module git.hrafn.xyz/aether/gotes
|
||||||
|
|
||||||
go 1.26.1
|
go 1.26.1
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestContentCompletionNoteValidation(t *testing.T) {
|
func TestContentCompletionNoteValidation(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NoteRepository manages operations on notes using a data store.
|
// NoteRepository manages operations on notes using a data store.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
"git.hrafn.xyz/aether/notes/internal/repository"
|
"git.hrafn.xyz/aether/gotes/internal/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
var fixedTestDate = time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC) //Date is set by synctest to this specific time
|
var fixedTestDate = time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC) //Date is set by synctest to this specific time
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ package repository
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
|
||||||
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NoteStore defines the interface for persisting and retrieving notes.
|
// NoteStore defines the interface for persisting and retrieving notes.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockNoteStore struct {
|
type mockNoteStore struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"modernc.org/sqlite"
|
"modernc.org/sqlite"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sqlSet = `
|
const sqlSet = `
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
"git.hrafn.xyz/aether/notes/internal/store/sqlite"
|
"git.hrafn.xyz/aether/gotes/internal/store/sqlite"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateSQLiteStore(t *testing.T) {
|
func TestCreateSQLiteStore(t *testing.T) {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/repository"
|
"git.hrafn.xyz/aether/gotes/internal/repository"
|
||||||
"git.hrafn.xyz/aether/notes/internal/store/sqlite"
|
"git.hrafn.xyz/aether/gotes/internal/store/sqlite"
|
||||||
"git.hrafn.xyz/aether/notes/server"
|
"git.hrafn.xyz/aether/gotes/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/client"
|
"git.hrafn.xyz/aether/gotes/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/notes/internal/repository"
|
"git.hrafn.xyz/aether/gotes/internal/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user