Documentation ¶
Index ¶
Constants ¶
const ( AscendingOrder = "ascending" DescendingOrder = "descending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { Attributes []string `form:"attributes" json:"attributes,omitempty" validate:"dive,attrpath"` ExcludedAttributes []string `form:"excludedAttributes" json:"excludedAttributes,omitempty" validate:"dive,attrpath"` }
Attributes represents ...
func (*Attributes) Explode ¶
func (a *Attributes) Explode()
Explode splits the attributes content by comma.
Notice that this assumes that URNs containing comma/s CANNOT be used.
type InternalServerError ¶
type InternalServerError struct {
Detail string
}
InternalServerError is a wrapper of a generic server error
func (*InternalServerError) Error ¶
func (e *InternalServerError) Error() string
type InvalidFilterError ¶
InvalidFilterError is thrown when the specified filter syntax is invalid or the specified attribute and filter comparison is not supported
func (*InvalidFilterError) Error ¶
func (e *InvalidFilterError) Error() string
type InvalidPathError ¶
InvalidPathError is thrown when path attribute is invalid or malformed
func (*InvalidPathError) Error ¶
func (e *InvalidPathError) Error() string
type MissingRequiredPropertyError ¶
MissingRequiredPropertyError is ...
func (*MissingRequiredPropertyError) Error ¶
func (e *MissingRequiredPropertyError) Error() string
type MutabilityError ¶
MutabilityError is ...
func (*MutabilityError) Error ¶
func (e *MutabilityError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Subject string
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type Pagination ¶
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
Detail string
}
ResourceNotFoundError is a wrapper of a mongo.ResourceNotFoundError
func (*ResourceNotFoundError) Error ¶
func (e *ResourceNotFoundError) Error() string
type Search ¶
type Search struct { Attributes Filter `form:"filter" json:"filter,omitempty"` // (todo)> add validator Sorting Pagination }
Search represents the set of parameters of a search query
func (*Search) UnmarshalJSON ¶
UnmarshalJSON unmarshals an Attribute taking into account defaults
type UniquenessError ¶
UniquenessError is ...
func (*UniquenessError) Error ¶
func (e *UniquenessError) Error() string