Documentation
¶
Index ¶
- Variables
- type Error
- func (s *Error) AddField(field, message string) *Error
- func (s *Error) AddFieldError(field, message, key string, params ...interface{}) *Error
- func (s *Error) Error() string
- func (s *Error) I18n(key string, args ...interface{}) *Error
- func (s *Error) SetError(err error) *Error
- func (s *Error) SetErrorCode(code string) *Error
- func (s *Error) SetHttpStatus(status int) *Error
- func (s *Error) ToResult(translator func(key string, params ...interface{}) string) Result
- type FieldError
- type OrderBy
- type OrderBys
- type PageData
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var OrderBySep = " "
View Source
var OrderBysSep = ","
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Message string Key string Args []interface{} Err error FieldErrors []FieldError ErrorCode string HttpStatus int }
func (*Error) AddFieldError ¶
func (*Error) SetErrorCode ¶
func (*Error) SetHttpStatus ¶
type FieldError ¶
type OrderBy ¶
func ParseOrderBy ¶
Click to show internal directories.
Click to hide internal directories.