Versions in this module Expand all Collapse all v1 v1.2.1 Aug 21, 2023 v1.0.0 Aug 21, 2023 Changes in this version + type Config struct + CacheAdapter *gocache.AdapterInterface + CustomParamEnabled bool + DefaultSize int64 + 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 Page struct + Error error + First bool + Items interface{} + Last bool + MaxPage int64 + Page int64 + Size int64 + Total int64 + TotalPages int64 + Visible int64 + type Pagination struct + Config *Config + func New(params ...interface{}) *Pagination + func (p *Pagination) Response(stmt *gorm.DB, req interface{}, res interface{}) Page + func (p *Pagination) With(stmt *gorm.DB) RequestContext + 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{}) Page