MCPcopy Create free account
hub / github.com/apache/devlake / GetPage

Method GetPage

backend/server/services/base.go:31–36  ·  view source on GitHub ↗

GetPage returns current page number

()

Source from the content-addressed store, hash-verified

29
30// GetPage returns current page number
31func (p *Pagination) GetPage() int {
32 if p.Page < 1 {
33 return 1
34 }
35 return p.Page
36}
37
38// GetPageSize returns a sensible page size based on input
39func (p *Pagination) GetPageSize() int {

Callers 15

GetSkipMethod · 0.95
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45
GetScopeListFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected