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

Method ToGetParams

api/pkg/requests/message_index_request.go:43–54  ·  view source on GitHub ↗

ToGetParams converts request to services.MessageGetParams

(userID entities.UserID)

Source from the content-addressed store, hash-verified

41
42// ToGetParams converts request to services.MessageGetParams
43func (input *MessageIndex) ToGetParams(userID entities.UserID) services.MessageGetParams {
44 return services.MessageGetParams{
45 IndexParams: repositories.IndexParams{
46 Skip: input.getInt(input.Skip),
47 Query: input.Query,
48 Limit: input.getInt(input.Limit),
49 },
50 UserID: userID,
51 Owner: input.Owner,
52 Contact: input.Contact,
53 }
54}
55
56// getLimit gets the take as a string
57func (input *MessageIndex) sanitizeAddress(value string) string {

Callers 1

IndexMethod · 0.95

Calls 1

getIntMethod · 0.95

Tested by

no test coverage detected