Documentation
¶
Index ¶
Constants ¶
View Source
const ARGUMENT_COUNT_MISMATCH = 1002
View Source
const AUTHENTICATION_FAILED = 1012
View Source
const AUTHENTICATION_REQUIRED = 1011
View Source
const BAD_OR_MISSING_XSRF_TOKEN = 1017
View Source
const COLUMN_ALREADY_EXISTS = 1007
View Source
const COLUMN_NOT_FOUND = 1005
View Source
const CONFLICT = 409
View Source
const DATA_INTEGRITY_VIOLATION = 1010
View Source
const DUPLICATE_KEY_EXCEPTION = 1009
View Source
const ERROR_NOT_FOUND = 9999
View Source
const FAILED_DEPENDENCY = 424
View Source
const FORBIDDEN = 403
View Source
const FOUND = 302
View Source
const HTTP_MESSAGE_NOT_READABLE = 1008
View Source
const INPUT_VALIDATION_FAILED = 1013
View Source
const INTERNAL_SERVER_ERROR = 500
View Source
const METHOD_NOT_ALLOWED = 405
View Source
const MOVED_PERMANENTLY = 301
View Source
const NOT_FOUND = 404
View Source
const OK = 200
View Source
const ONLY_AJAX_REQUESTS_ALLOWED = 1018
View Source
const OPERATION_FORBIDDEN = 1014
View Source
const OPERATION_NOT_SUPPORTED = 1015
View Source
const ORIGIN_FORBIDDEN = 1004
View Source
const PAGINATION_FORBIDDEN = 1019
View Source
const PASSWORD_TOO_SHORT = 1021
View Source
const RECORD_NOT_FOUND = 1003
View Source
const ROUTE_NOT_FOUND = 1000
View Source
const TABLE_ALREADY_EXISTS = 1006
View Source
const TABLE_NOT_FOUND = 1001
View Source
const TEMPORARY_OR_PERMANENTLY_BLOCKED = 1016
View Source
const UNAUTHORIZED = 401
View Source
const UNPROCESSABLE_ENTITY = 422
View Source
const USER_ALREADY_EXIST = 1020
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode struct {
// contains filtered or unexported fields
}
func NewErrorCode ¶
func (*ErrorCode) GetMessage ¶
type ErrorDocument ¶
type ErrorDocument struct {
// contains filtered or unexported fields
}
func NewErrorDocument ¶
func NewErrorDocument(errorCode *ErrorCode, argument string, details interface{}) *ErrorDocument
func NewErrorDocumentFromError ¶
func NewErrorDocumentFromError(err error, debug bool) *ErrorDocument
func (*ErrorDocument) GetCode ¶
func (ed *ErrorDocument) GetCode() int
func (*ErrorDocument) GetMessage ¶
func (ed *ErrorDocument) GetMessage() string
func (*ErrorDocument) GetStatus ¶
func (ed *ErrorDocument) GetStatus() int
func (*ErrorDocument) MarshalJSON ¶
func (ed *ErrorDocument) MarshalJSON() ([]byte, error)
json marshaling for struct ErrorDocument
func (*ErrorDocument) Serialize ¶
func (ed *ErrorDocument) Serialize() map[string]interface{}
type ListDocument ¶
type ListDocument struct {
// contains filtered or unexported fields
}
func NewListDocument ¶
func NewListDocument(records []map[string]interface{}, results int) *ListDocument
func (*ListDocument) GetRecords ¶
func (l *ListDocument) GetRecords() []map[string]interface{}
func (*ListDocument) GetResults ¶
func (l *ListDocument) GetResults() int
func (*ListDocument) JsonSerialize ¶
func (l *ListDocument) JsonSerialize() string
func (*ListDocument) MarshalJSON ¶
func (l *ListDocument) MarshalJSON() ([]byte, error)
json marshaling for struct ListDocument
func (*ListDocument) Serialize ¶
func (l *ListDocument) Serialize() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.