scopes

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNextPageToken

func CreateNextPageToken(id int32, value any) string

func Paginate

func Paginate(value any, pagination *models.Pagination, db *gorm.DB) func(db *gorm.DB) *gorm.DB

func PaginateWithOptions added in v0.3.3

func PaginateWithOptions(value any, pagination *models.Pagination, db *gorm.DB, tablePrefix string, customAllowedColumns map[string]string) func(db *gorm.DB) *gorm.DB

PaginateWithOptions provides full control over pagination with custom allowed columns

func PaginateWithTablePrefix

func PaginateWithTablePrefix(value any, pagination *models.Pagination, db *gorm.DB, tablePrefix string) func(db *gorm.DB) *gorm.DB

Types

type Cursor added in v0.3.3

type Cursor struct {
	ID    int32
	Value string
}

func DecodeCursor added in v0.3.3

func DecodeCursor(token string) (*Cursor, error)

DecodeCursor parses a next page token.

Jump to

Keyboard shortcuts

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