pye/storage/storage.go

14 lines
332 B
Go
Raw Normal View History

2024-10-12 20:41:30 +03:00
package storage
2024-10-13 16:16:19 +03:00
// Storage is an arbitrary storage interface
2024-10-12 20:41:30 +03:00
type Storage interface {
AddUser(email, password string) error
ById(uuid string) (User, bool)
ByEmail(uuid string) (User, bool)
EmailExists(email string) bool
}
2024-10-13 16:16:19 +03:00
// Data stores active information for the app
// It should be populated at app startup
var Data Storage