rename structs

This commit is contained in:
2025-02-09 09:38:02 -06:00
parent 75d8250f72
commit 4e61d7714e
7 changed files with 35 additions and 36 deletions

View File

@@ -5,7 +5,6 @@ import (
"git.infra.nkode.tech/dkelly/nkode-core/config"
"git.infra.nkode.tech/dkelly/nkode-core/email"
"git.infra.nkode.tech/dkelly/nkode-core/entities"
"git.infra.nkode.tech/dkelly/nkode-core/memCache"
"git.infra.nkode.tech/dkelly/nkode-core/repository"
"git.infra.nkode.tech/dkelly/nkode-core/security"
"github.com/google/uuid"
@@ -24,7 +23,7 @@ type NKodeAPI struct {
repo repository.CustomerUserRepository
signupSessionCache *cache.Cache
emailQueue *email.Queue
forgotNkodeCache memCache.ForgotNKodeCache
forgotNkodeCache mem_cache.ForgotNKodeCache
}
func NewNKodeAPI(repo repository.CustomerUserRepository, queue *email.Queue) NKodeAPI {
@@ -32,7 +31,7 @@ func NewNKodeAPI(repo repository.CustomerUserRepository, queue *email.Queue) NKo
repo: repo,
emailQueue: queue,
signupSessionCache: cache.New(sessionExpiration, sessionCleanupInterval),
forgotNkodeCache: memCache.NewForgotNKodeCache(),
forgotNkodeCache: mem_cache.NewForgotNKodeCache(),
}
}

View File

@@ -18,12 +18,12 @@ func TestNKodeAPI(t *testing.T) {
dbPath := os.Getenv("TEST_DB")
ctx := context.Background()
sqlitedb, err := repository.NewSqliteRepository(ctx, dbPath)
sqlitedb, err := repository.NewSqliteNKodeRepo(ctx, dbPath)
if err != nil {
log.Fatal(err)
}
sqlitedb.Start()
defer func(sqldb *repository.SqliteRepository) {
defer func(sqldb *repository.SqliteNKodeRepo) {
if err := sqldb.Stop(); err != nil {
log.Fatal(err)
}