Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPageSize = 10 PageStartQueryParam = "s" PageEndQueryParam = "e" PageSizeQueryParam = "l" )
Functions ¶
This section is empty.
Types ¶
type FullSpec ¶
type FullSpec struct {
// StartIDIncl is the start ID (inclusive), might be empty if page contains no elements
StartIDIncl string `json:"start,omitempty"`
// EndIDIncl is the end ID (inclusive), might be empty if page contains no elements
EndIDIncl string `json:"end,omitempty"`
PageSize int `json:"size"`
}
func (*FullSpec) Prev ¶
func (p *FullSpec) Prev() PreviousSpec
type Paging ¶
type Paging struct {
Previous *PreviousSpec `json:"prev,omitempty"`
Current FullSpec `json:"cur"`
Next *NextSpec `json:"next,omitempty"`
}
type PreviousSpec ¶
func (*PreviousSpec) Query ¶
func (f *PreviousSpec) Query(query *url.Values)
func (*PreviousSpec) Size ¶
func (f *PreviousSpec) Size() int
Click to show internal directories.
Click to hide internal directories.