Documentation ¶
Index ¶
- type RequestParams
- func (p *RequestParams) ApplyParams(users []*model.SneakerReference) []*model.SneakerReference
- func (p *RequestParams) Limit() int
- func (p *RequestParams) Offset() int
- func (p *RequestParams) SetLimit(limit int)
- func (p *RequestParams) SetOffset(offset int)
- func (p *RequestParams) SetSortBy(sortBy string)
- func (p *RequestParams) SetSortDirection(direction string)
- func (p *RequestParams) SetUserID(userID string)
- func (p *RequestParams) SortBy() string
- func (p *RequestParams) SortDirection() string
- func (p *RequestParams) SortDirectionNum() int
- func (p *RequestParams) UserID() string
- type RequestQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestParams ¶
type RequestParams struct {
// contains filtered or unexported fields
}
func (*RequestParams) ApplyParams ¶
func (p *RequestParams) ApplyParams(users []*model.SneakerReference) []*model.SneakerReference
func (*RequestParams) Limit ¶
func (p *RequestParams) Limit() int
func (*RequestParams) Offset ¶
func (p *RequestParams) Offset() int
func (*RequestParams) SetLimit ¶
func (p *RequestParams) SetLimit(limit int)
func (*RequestParams) SetOffset ¶
func (p *RequestParams) SetOffset(offset int)
func (*RequestParams) SetSortBy ¶
func (p *RequestParams) SetSortBy(sortBy string)
func (*RequestParams) SetSortDirection ¶
func (p *RequestParams) SetSortDirection(direction string)
func (*RequestParams) SetUserID ¶
func (p *RequestParams) SetUserID(userID string)
func (*RequestParams) SortBy ¶
func (p *RequestParams) SortBy() string
func (*RequestParams) SortDirection ¶
func (p *RequestParams) SortDirection() string
func (*RequestParams) SortDirectionNum ¶
func (p *RequestParams) SortDirectionNum() int
func (*RequestParams) UserID ¶
func (p *RequestParams) UserID() string
type RequestQuery ¶
type RequestQuery map[string]interface{}
func NewRequestQuery ¶
func NewRequestQuery(i interface{}) (RequestQuery, error)
Click to show internal directories.
Click to hide internal directories.