common

package
v1.0.0-beta.40 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPageDescriptionFromSearchParams

func GetPageDescriptionFromSearchParams(queryParams *datastore.QueryParams, count int64) response.PageDescription

GetPageDescriptionFromSearchParams - returns a PageDescription based on the provided SearchParams

func GetPageFromQueryParams added in v0.28.0

func GetPageFromQueryParams(queryParams *filter.QueryParams, count int64) models.Page

GetPageFromQueryParams will return a Page object from the query parameters and count value

func MapToTypeContracts

func MapToTypeContracts[T any, U any](input []T, mapper func(T) U) []U

MapToTypeContracts is a generic function that maps elements from one slice to another.

Types

This section is empty.

Jump to

Keyboard shortcuts

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