Discover Packages
github.com/NeuralTrust/TrustGate
pkg
domain
listing
package
Version:
v0.34.2
Opens a new window with list of versions in this module.
Published: Aug 6, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package listing holds shared pagination and sort value objects for list queries.
Direction is the sort direction for a list query.
SQL returns the SQL keyword for this direction. Empty defaults to DESC.
type Page struct {
Number int
Size int
}
Page is a 1-based page request.
Normalize applies defaults for missing page/size values.
Offset returns the SQL OFFSET for this page.
Sort is an optional field + direction pair. A zero Sort means the repository
default (typically created_at DESC). Field must be validated against a
whitelist before it reaches SQL.
IsZero reports whether no sort was requested.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.