general

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLimitCount = 25

Variables

View Source
var DefaultConfig = &paginator.Config{
	Keys:  []string{"CreatedAt", "ID"},
	Limit: DefaultLimitCount,
	Order: paginator.ASC,
}

Functions

func Clauses

func Clauses(ctx *fiber.Ctx, stmt *gorm.DB, searchFieldName string) (*gorm.DB, error)

func NewPaginator

func NewPaginator(ctx *fiber.Ctx) *paginator.Paginator

func NewPaginatorWithConfig added in v0.4.1

func NewPaginatorWithConfig(ctx *fiber.Ctx, config *paginator.Config) *paginator.Paginator

Types

type PaginationLinks paginator.Cursor

func (PaginationLinks) MarshalJSON

func (links PaginationLinks) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL