MCPcopy
hub / github.com/IceWhaleTech/CasaOS / Validate

Method Validate

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

Source from the content-addressed store, hash-verified

11const MinInt = -MaxInt - 1
12
13func (p *PageReq) Validate() {
14 if p.Index < 1 {
15 p.Index = 1
16 }
17 if p.Size < 1 {
18 p.Size = 100000
19 }
20 // if p.PerPage < 1 {
21 // p.PerPage = MaxInt
22 // }
23}

Callers 5

InitV2RouterFunction · 0.80
InitFileFunction · 0.80
InitDirFunction · 0.80
InitV1RouterFunction · 0.80
DirPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected