Documentation
¶
Overview ¶
Package query provides a set of types commonly used in the app/query layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paginated ¶
type Paginated[T any] struct { Data []T `json:"data"` Page int `json:"page"` IsFirstPage bool `json:"first_page"` IsLastPage bool `json:"last_page"` PerPage int `json:"per_page"` Total int `json:"total"` }
Represents a paginated data set.
type SecretString ¶
type SecretString string
Represents a specific string that should be kept secret and should never be exposed. To do that, it implements the MarshalJSON interface to always return the same constant (See SecretStringPublicValue).
func (SecretString) MarshalJSON ¶
func (s SecretString) MarshalJSON() ([]byte, error)
func (*SecretString) Scan ¶
func (s *SecretString) Scan(src any) error
Implements the Scan interface to enable the use of this type in a monad.
Click to show internal directories.
Click to hide internal directories.