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

Function listResponse

modules/sentry/api.go:76–85  ·  view source on GitHub ↗

listResponse wraps data with pagination metadata.

(data any, total, page, limit int)

Source from the content-addressed store, hash-verified

74
75// listResponse wraps data with pagination metadata.
76func listResponse(data any, total, page, limit int) map[string]any {
77 return map[string]any{
78 "data": data,
79 "meta": map[string]any{
80 "total": total,
81 "page": page,
82 "limit": limit,
83 },
84 }
85}
86
87// currentPage derives page number from offset and limit.
88func currentPage(offset, limit int) int {

Callers 4

handleTracesListFunction · 0.85
handleExceptionsGroupedFunction · 0.85
handleLogsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected