meta

package
v0.0.0-...-69ba7aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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)

func (RequestQuery) ToBson

func (q RequestQuery) ToBson() (m bson.M, err error)

func (RequestQuery) ToSql

func (q RequestQuery) ToSql() (sqb.And, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL