Move to Cobra for CLI
This commit is contained in:
parent
452048359a
commit
1f50b8621e
15 changed files with 230 additions and 155 deletions
|
@ -1,8 +1,13 @@
|
|||
package storage
|
||||
|
||||
// Storage is an arbitrary storage interface
|
||||
type Storage interface {
|
||||
AddUser(email, password string) error
|
||||
ById(uuid string) (User, bool)
|
||||
ByEmail(uuid string) (User, bool)
|
||||
EmailExists(email string) bool
|
||||
}
|
||||
|
||||
// Data stores active information for the app
|
||||
// It should be populated at app startup
|
||||
var Data Storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue