Versions in this module Expand all Collapse all v1 v1.0.0 Feb 14, 2024 Changes in this version + func GetPrinter(c *gin.Context) (printer *message.Printer) + type Message interface + Abort func(c *gin.Context) + Add func(msgs ...Message) Message + Error func() string + Get func(key string) interface{} + Is400 func() bool + Is500 func() bool + IsError func() bool + JSON func(c *gin.Context) + Set func(key string, val interface{}) Message + Text func(string) Message + ToJSON func() []byte + ToMap func() map[string]interface{} + Write func(c *gin.Context) + func CannotDeleteSharedResource(c *gin.Context) Message + func Conflict(c *gin.Context) Message + func ConflictingOrderByAndDistinct(c *gin.Context) Message + func ConflictingPaginationAndAggregation(c *gin.Context) Message + func ConflictingUsername(c *gin.Context) Message + func DeleteFailed(c *gin.Context, blockingRelations []string) Message + func DisplayNameNotSupported(c *gin.Context) Message + func DuplicateStructField(c *gin.Context, field string) Message + func DuplicateUnique(c *gin.Context, table, combination string) Message + func ExpectedSlice(c *gin.Context) Message + func FileNotFound(c *gin.Context) Message + func FolderNotFound(c *gin.Context) Message + func Forbidden(c *gin.Context) Message + func FromError(status int, err error) Message + func InsufficientPermissions(c *gin.Context, permissions ...string) Message + func InsufficientPermissionsHasOne(c *gin.Context, permissions ...string) Message + func InternalServerError(c *gin.Context) Message + func InvalidField(c *gin.Context, field string) Message + func InvalidFieldAlias(c *gin.Context, alias, field string) Message + func InvalidFieldRequired(c *gin.Context, name string) Message + func InvalidFieldValue(c *gin.Context, field, rules string, value interface{}) Message + func InvalidJSON(c *gin.Context) Message + func InvalidOrders(c *gin.Context, orders ...string) Message + func InvalidParamOperator(c *gin.Context, operator string) Message + func InvalidParamType(c *gin.Context, field string, correctType string) Message + func InvalidParamsJSON(c *gin.Context) Message + func InvalidParamsSyntax(c *gin.Context) Message + func InvalidRelation(c *gin.Context, table string) Message + func InvalidRelations(c *gin.Context, relations ...string) Message + func InvalidUrlParameter(c *gin.Context, parameter string) Message + func ItemFound(c *gin.Context) Message + func ItemNotFound(c *gin.Context) Message + func ManualPagination(c *gin.Context) Message + func MissingForeignKey(c *gin.Context, key, rel string) Message + func MissingRequiredParameter(c *gin.Context, name, in string) Message + func Ok(c *gin.Context) Message + func RowError(c *gin.Context, row int, message string) Message + func UnauthorizedRelations(c *gin.Context, relations ...string) Message + func Unprocessable(c *gin.Context) Message + func UnsupportedParamType(c *gin.Context, parameter string) Message + type Msg struct + Message string + Properties map[string]interface{} + Status int + func (m *Msg) Abort(c *gin.Context) + func (m *Msg) Add(msgs ...Message) Message + func (m *Msg) Error() string + func (m *Msg) Get(key string) interface{} + func (m *Msg) Is400() bool + func (m *Msg) Is500() bool + func (m *Msg) IsError() bool + func (m *Msg) JSON(c *gin.Context) + func (m *Msg) Set(key string, val interface{}) Message + func (m *Msg) Text(text string) Message + func (m *Msg) ToJSON() []byte + func (m *Msg) ToMap() map[string]interface{} + func (m *Msg) Write(c *gin.Context) + type SkipDelete struct + func (SkipDelete) Error() string