Documentation ¶
Index ¶
- Variables
- type API
- func (a *API) AddAccountRole(ctx echo.Context) error
- func (a *API) AddResourceRole(ctx echo.Context) error
- func (a *API) AdminAuthentication(password string) echo.MiddlewareFunc
- func (a *API) CreateAccount(ctx echo.Context) error
- func (a *API) CreateResource(ctx echo.Context) error
- func (a *API) CreateRole(ctx echo.Context) error
- func (a *API) ErrorHandler(err error, ctx echo.Context)
- func (a *API) NotFound(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicate = fmt.Errorf("record already exists") ErrForeignKeyConstraintFailed = fmt.Errorf("a record could not be found from linked table (constraint failed)") ErrTablesMissing = fmt.Errorf("database has not been setup correctly on the server") ErrUnknown = fmt.Errorf("unknown error occured") )
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AddAccountRole ¶
func (*API) AddResourceRole ¶
func (*API) AdminAuthentication ¶
func (*API) CreateAccount ¶
func (*API) CreateResource ¶
func (*API) CreateRole ¶
func (*API) ErrorHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.