Documentation ¶
Index ¶
- Constants
- type Filter
- type HttpClient
- type Pagination
- func (pagination Pagination) Filter(query *orm.Query) (*orm.Query, error)
- func (pagination Pagination) GetCurrentPage() int
- func (pagination Pagination) GetFirstPageLink() *string
- func (pagination Pagination) GetLastPage() int
- func (pagination Pagination) GetLastPageLink() *string
- func (pagination Pagination) GetNextPageLink() *string
- func (pagination Pagination) GetPath() string
- func (pagination Pagination) GetPerPage() int
- func (pagination Pagination) GetPrevPageLink() *string
Constants ¶
View Source
const DefaultLimit = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient(host string) *HttpClient
func (*HttpClient) Get ¶
func (c *HttpClient) Get(url string, response interface{}) error
type Pagination ¶
func NewPagination ¶
func NewPagination(request *http.Request) Pagination
func (Pagination) GetCurrentPage ¶
func (pagination Pagination) GetCurrentPage() int
func (Pagination) GetFirstPageLink ¶
func (pagination Pagination) GetFirstPageLink() *string
func (Pagination) GetLastPage ¶
func (pagination Pagination) GetLastPage() int
func (Pagination) GetLastPageLink ¶
func (pagination Pagination) GetLastPageLink() *string
func (Pagination) GetNextPageLink ¶
func (pagination Pagination) GetNextPageLink() *string
func (Pagination) GetPath ¶
func (pagination Pagination) GetPath() string
func (Pagination) GetPerPage ¶
func (pagination Pagination) GetPerPage() int
func (Pagination) GetPrevPageLink ¶
func (pagination Pagination) GetPrevPageLink() *string
Click to show internal directories.
Click to hide internal directories.