Backend implements the Module interface
This commit is contained in:
parent
2dc92f13bb
commit
74a526e6c7
@ -5,6 +5,7 @@ import (
|
|||||||
"git.quimbo.fr/odwrtw/canape/backend/users"
|
"git.quimbo.fr/odwrtw/canape/backend/users"
|
||||||
|
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
polochon "github.com/odwrtw/polochon/lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Backend represents the data backend
|
// Backend represents the data backend
|
||||||
@ -17,6 +18,11 @@ func (b *Backend) Name() string {
|
|||||||
return "canape-backend"
|
return "canape-backend"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Status implements the Module interface
|
||||||
|
func (b *Backend) Status() (polochon.ModuleStatus, error) {
|
||||||
|
return polochon.StatusOK, nil
|
||||||
|
}
|
||||||
|
|
||||||
// GetUser gets the username from the UserBackend
|
// GetUser gets the username from the UserBackend
|
||||||
// Implements the UserBackend interface
|
// Implements the UserBackend interface
|
||||||
func (b *Backend) GetUser(username string) (auth.User, error) {
|
func (b *Backend) GetUser(username string) (auth.User, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user