Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryPaginatedAll ¶
func QueryPaginatedAll(db *gosql.DB, opts pagination.Options, cb PaginatedResponseCallback, query string, args ...interface{}) error
Types ¶
type DefaultPaginatedResponse ¶
type DefaultPaginatedResponse struct {
// contains filtered or unexported fields
}
func (*DefaultPaginatedResponse) Results ¶ added in v0.2.0
func (r *DefaultPaginatedResponse) Results() pagination.Results
func (*DefaultPaginatedResponse) Rows ¶
func (r *DefaultPaginatedResponse) Rows() *gosql.Rows
type PaginatedResponse ¶
func QueryPaginated ¶
func QueryPaginated(db *gosql.DB, opts pagination.Options, query string, args ...interface{}) (PaginatedResponse, error)
type PaginatedResponseCallback ¶
type PaginatedResponseCallback func(PaginatedResponse) error
Click to show internal directories.
Click to hide internal directories.