MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Sanitize

Method Sanitize

api/pkg/requests/webhook_index_request.go:18–28  ·  view source on GitHub ↗

Sanitize sets defaults to MessageOutstanding

()

Source from the content-addressed store, hash-verified

16
17// Sanitize sets defaults to MessageOutstanding
18func (input *WebhookIndex) Sanitize() WebhookIndex {
19 if strings.TrimSpace(input.Limit) == "" {
20 input.Limit = "1"
21 }
22 input.Query = strings.TrimSpace(input.Query)
23 input.Skip = strings.TrimSpace(input.Skip)
24 if input.Skip == "" {
25 input.Skip = "0"
26 }
27 return *input
28}
29
30// ToIndexParams converts HeartbeatIndex to repositories.IndexParams
31func (input *WebhookIndex) ToIndexParams() repositories.IndexParams {

Callers 1

IndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected