MCPcopy Index your code
hub / github.com/apache/devlake / GetPageSize

Method GetPageSize

backend/server/services/base.go:39–41  ·  view source on GitHub ↗

GetPageSize returns a sensible page size based on input

()

Source from the content-addressed store, hash-verified

37
38// GetPageSize returns a sensible page size based on input
39func (p *Pagination) GetPageSize() int {
40 return p.GetPageSizeOr(50)
41}
42
43// GetPageSizeOr returns the page size or fallback to `defaultVal`
44func (p *Pagination) GetPageSizeOr(defaultVal int) int {

Callers 5

GetSkipMethod · 0.95
GetProjectsFunction · 0.80
GetApiKeysFunction · 0.80
GetDbPipelinesFunction · 0.80
GetBlueprintsFunction · 0.80

Calls 1

GetPageSizeOrMethod · 0.95

Tested by

no test coverage detected