limitoffsetpagination

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextPageURL

func GetNextPageURL(c *fiber.Ctx, limit, offset, totalRows int) string

func GetPrevPageURL

func GetPrevPageURL(c *fiber.Ctx, limit, offset int) string

func HandlePaginatedRequest

func HandlePaginatedRequest[T any](
	c *fiber.Ctx,
	eh *validator.ErrorHandler,
	reqCtx *ctx.RequestContext,
	handler ports.PageableHandler[T],
) error

Types

type Info

type Info struct {
	Offset int
	Limit  int
}

func Params

func Params(c *fiber.Ctx) (*Info, error)

Jump to

Keyboard shortcuts

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