Documentation ¶
Index ¶
- Variables
- func CreateObject(r interface{}) error
- func DeleteObject(r interface{}) error
- func GetDB() *gorm.DB
- func InitDB()
- func UpdateObject(r interface{}) error
- type ErrorStruct
- func (e ErrorStruct) ErrCreate(err error, what string) error
- func (e ErrorStruct) ErrDelete(err error, what string) error
- func (e ErrorStruct) ErrIsEmpty(err error, whats string) error
- func (e ErrorStruct) ErrNotFound(err error, what string) error
- func (e ErrorStruct) ErrUpdate(err error, what string) error
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = ErrorStruct{}
Functions ¶
Types ¶
type ErrorStruct ¶
type ErrorStruct struct{}
func (ErrorStruct) ErrCreate ¶
func (e ErrorStruct) ErrCreate(err error, what string) error
ErrCreate is an function that checks if there is an error creating an object in the db
func (ErrorStruct) ErrDelete ¶
func (e ErrorStruct) ErrDelete(err error, what string) error
ErrDelete is an function that checks if there is an error deleting an object from the db
func (ErrorStruct) ErrIsEmpty ¶
func (e ErrorStruct) ErrIsEmpty(err error, whats string) error
ErrIsEmpty is an function that checks if the return from a search query of db is empty
func (ErrorStruct) ErrNotFound ¶
func (e ErrorStruct) ErrNotFound(err error, what string) error
ErrNotFound is an function that checks if an object is not found in the db
Click to show internal directories.
Click to hide internal directories.