rename structs
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user