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:
parent
3791631045
commit
dc72748fbe
4 changed files with 76 additions and 0 deletions
8
apierror/apierror.go
Normal file
8
apierror/apierror.go
Normal 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"
|
||||
}
|
Reference in a new issue