Versions in this module Expand all Collapse all v1 v1.0.0 Dec 7, 2023 Changes in this version + type Config struct + CacheAdapter *gocache.AdapterInterface + CustomParamEnabled bool + DefaultSize int64 + ErrorEnabled bool + FieldSelectorEnabled bool + FieldWrapper string + FieldsParams []string + FilterParams []string + JSONMarshal func(v interface{}) ([]byte, error) + JSONUnmarshal func(data []byte, v interface{}) error + Operator string + OrderParams []string + PageParams []string + SizeParams []string + SmartSearch bool + SortParams []string + Statement *gorm.Statement + ValueWrapper string + type Pagination struct + Config *Config + func New(params ...interface{}) *Pagination + func (p *Pagination) Paginate(stmt *gorm.DB) RequestContext + func (p *Pagination) Paging(statement *gorm.DB, request interface{}, response interface{}) Result + func (p Pagination) ClearAllCache() + func (p Pagination) ClearCache(keyPrefixes ...string) + type RequestContext interface + Request func(interface{}) ResponseContext + type ResponseContext interface + Cache func(string) ResponseContext + Fields func([]string) ResponseContext + Response func(interface{}) Result + type Result struct + EndItem int64 + Error bool + ErrorMessage string + First bool + Items interface{} + Last bool + Page int64 + RawError error + Size int64 + StartItem int64 + Total int64 + TotalPages int64 + Visible int64