Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;"`
CreatedAt time.Time `gorm:"column:createdOn"`
UpdatedAt time.Time `gorm:"column:modifiedOn"`
DeletedAt *time.Time `sql:"index" gorm:"deletedOn"`
}
Base contains common columns for all tables.
type HTTPError ¶
HTTPError Represent an error to be sent back on repsonse
func NewHTTPError ¶
NewHTTPError creates an new instance of HTTP Error
type ValidationError ¶
type ValidationError struct {
ErrorKey string `json:"errorKey"`
Errors map[string]string `json:"errors"`
}
ValidationError is an error indicating error in validations
func NewValidationError ¶
func NewValidationError(err string, failedValidations map[string]string) ValidationError
NewValidationError creates an new instance of Validation Error
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.