Migliorata la struttura della libreria che gestisce le sessioni di autenticazione
This commit is contained in:
@@ -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{},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user