MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Validate

Method Validate

internal/model/req.go:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const MinInt = -MaxInt - 1
12
13func (p *PageReq) Validate() {
14 if p.Page < 1 {
15 p.Page = 1
16 }
17 if p.PerPage < 1 {
18 p.PerPage = MaxInt
19 }
20}

Callers 11

normalizeFSListArgsFunction · 0.95
ListStoragesFunction · 0.95
ListSharingsFunction · 0.95
listFunction · 0.95
ListMetasFunction · 0.95
ListUsersFunction · 0.95
FsArchiveListSplitFunction · 0.45
loginHashFunction · 0.45
Verify2FAFunction · 0.45
SearchFunction · 0.45
FsListSplitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected