Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLimit = 10 DefaultPage = 1 DefaultPagination = Pagination{ Page: DefaultPage, Size: DefaultLimit, } )
Functions ¶
This section is empty.
Types ¶
type FindAllBookOptions ¶
type FindAllBookOptions struct { Title string `form:"title"` Author string `form:"author"` Pagination Pagination Search string `form:"search"` Sort []SortQuery `form:"sort"` }
func MergeFindAllBookOptions ¶
func MergeFindAllBookOptions(opts ...FindAllBookOptions) FindAllBookOptions
type Pagination ¶
func (Pagination) Offset ¶
func (p Pagination) Offset() int
Click to show internal directories.
Click to hide internal directories.