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

Method GetSkip

backend/server/services/base.go:52–54  ·  view source on GitHub ↗

GetSkip returns how many records should be skipped for specified page

()

Source from the content-addressed store, hash-verified

50
51// GetSkip returns how many records should be skipped for specified page
52func (p *Pagination) GetSkip() int {
53 return (p.GetPage() - 1) * p.GetPageSize()
54}
55
56// VerifyStruct verifies given struct with `validator`
57func VerifyStruct(v interface{}) errors.Error {

Callers 5

GetProjectsFunction · 0.80
GetApiKeysFunction · 0.80
GetTasksFunction · 0.80
GetDbPipelinesFunction · 0.80
GetBlueprintsFunction · 0.80

Calls 2

GetPageMethod · 0.95
GetPageSizeMethod · 0.95

Tested by

no test coverage detected