canape/backend/models/backend.go
Grégoire Delattre 2f0497ebc6
All checks were successful
continuous-integration/drone/push Build is passing
Get the movie poster with a get details
2020-04-11 19:07:11 +02:00

31 lines
598 B
Go

package models
import (
"github.com/jmoiron/sqlx"
polochon "github.com/odwrtw/polochon/lib"
)
// Backend represents the data backend
type Backend struct {
Database *sqlx.DB
PublicDir string
ImgURLPrefix string
configured bool
}
// Name implements the Module interface
func (b *Backend) Name() string {
return "canape-backend"
}
// Init implements the module interface
func (b *Backend) Init([]byte) error {
b.configured = true
return nil
}
// Status implements the Module interface
func (b *Backend) Status() (polochon.ModuleStatus, error) {
return polochon.StatusOK, nil
}