Backend implements the Module interface

This commit is contained in:
Lucas BEE 2019-04-12 22:36:10 +02:00
parent 2dc92f13bb
commit 74a526e6c7

View File

@ -5,6 +5,7 @@ import (
"git.quimbo.fr/odwrtw/canape/backend/users"
"github.com/jmoiron/sqlx"
polochon "github.com/odwrtw/polochon/lib"
)
// Backend represents the data backend
@ -17,6 +18,11 @@ func (b *Backend) Name() string {
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
// Implements the UserBackend interface
func (b *Backend) GetUser(username string) (auth.User, error) {