Documentation
¶
Overview ¶
Package types defines shared data types used across MicroJet, including the cursor-paginated result containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePageToken ¶
func EncodePageToken ¶
Types ¶
type PagedResult ¶
type PagedResultRequest ¶
type PagedResultRequest struct {
PageSize int32 `json:"pageSize"`
NextPageToken *string `json:"nextPageToken"`
Page *int32 `json:"page"`
}
PagedResultRequest carries pagination parameters for a list query.
It supports two mutually exclusive modes:
- Cursor (default): leave Page nil and pass NextPageToken. Forward-only, TotalCount is not computed. Works with any backend.
- Offset: set Page (1-based) for arbitrary page jumps. NextPageToken is ignored and TotalCount is populated. Only offset-capable backends (SQL via gormx) honor it; others reject an offset request.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package money provides a currency-aware decimal money type with arithmetic that refuses to mix currencies and integer minor-unit conversion.
|
Package money provides a currency-aware decimal money type with arithmetic that refuses to mix currencies and integer minor-unit conversion. |
Click to show internal directories.
Click to hide internal directories.