Implémenter route /v0/health

Ajouter error type si dbclient ou bottinclient ne sont pas implémentés

Ajouter echo.Group v0
This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-15 18:13:48 -04:00
parent 3791631045
commit dc72748fbe
4 changed files with 76 additions and 0 deletions

8
apierror/apierror.go Normal file
View file

@ -0,0 +1,8 @@
// Package apierror defines error types that can be returned by the API server
package apierror
type ErrBottinOrDBNotImplemented struct{}
func (e *ErrBottinOrDBNotImplemented) Error() string {
return "Database client or agecem/bottin API client not implemented"
}