Documentation ¶
Index ¶
- func GetPrinter(c *gin.Context) (printer *message.Printer)
- type Message
- func CannotCreatePrint(c *gin.Context) Message
- 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 MissingRequiredParameterForQueryField(c *gin.Context, name, field 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message interface { Text(string) Message ToMap() map[string]interface{} JSON(c *gin.Context) ToJSON() []byte Abort(c *gin.Context) Write(c *gin.Context) Error() string IsError() bool Is400() bool Is500() bool Set(key string, val interface{}) Message Get(key string) interface{} Add(msgs ...Message) Message }
func CannotCreatePrint ¶ added in v1.0.1
func ConflictingUsername ¶
func DisplayNameNotSupported ¶
func ExpectedSlice ¶
func FileNotFound ¶
func FolderNotFound ¶
func InsufficientPermissions ¶
func InternalServerError ¶
func InvalidFieldValue ¶
func InvalidJSON ¶
func InvalidParamType ¶
func InvalidParamsJSON ¶
func InvalidParamsSyntax ¶
func ManualPagination ¶
func MissingRequiredParameterForQueryField ¶ added in v1.0.1
func UnauthorizedRelations ¶
type SkipDelete ¶
type SkipDelete struct{}
func (SkipDelete) Error ¶
func (SkipDelete) Error() string
Click to show internal directories.
Click to hide internal directories.