Migliorata la struttura della libreria che gestisce le sessioni di autenticazione

This commit is contained in:
2022-03-20 22:12:31 +01:00
parent a970cea91a
commit 1495a5e45b
4 changed files with 145 additions and 130 deletions
+3 -3
View File
@@ -96,8 +96,8 @@ type Seat struct {
// Database Interfaces
//
// Store is the main interface for interacting with database implementations, for now the only implementation is "memDB".
type Store interface {
// Database is the main interface for interacting with database implementations, for now the only implementation is "memDB".
type Database interface {
BeginTransaction()
EndTransaction()
@@ -127,7 +127,7 @@ type Store interface {
// TODO: Create an SQLite implementation
// NewInMemoryStore creates an instance of memDB hidden behind the Store interface.
func NewInMemoryStore() Store {
func NewInMemoryStore() Database {
db := &memDB{
&sync.Mutex{},