MCPcopy Create free account
hub / github.com/buggregator/server / currentPage

Function currentPage

modules/sentry/api.go:88–93  ·  view source on GitHub ↗

currentPage derives page number from offset and limit.

(offset, limit int)

Source from the content-addressed store, hash-verified

86
87// currentPage derives page number from offset and limit.
88func currentPage(offset, limit int) int {
89 if limit == 0 {
90 return 1
91 }
92 return (offset / limit) + 1
93}
94
95// scanNullString returns empty string for NULL columns.
96func scanNullString(ns sql.NullString) string {

Callers 4

handleTracesListFunction · 0.85
handleExceptionsGroupedFunction · 0.85
handleLogsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected