mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
refactoring API and added dbs: postgres, bolt
This commit is contained in:
15
api/models/error.go
Normal file
15
api/models/error.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "errors"
|
||||
|
||||
type Error struct {
|
||||
Error *ErrorBody `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Error) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
var (
|
||||
ErrInvalidJSON = errors.New("Could not create app")
|
||||
)
|
||||
Reference in New Issue
Block a user