Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePageToken ¶
func EncodePageToken ¶
Types ¶
type Message ¶
type Message struct {
Type string `json:"type"`
ID string `json:"id"`
Name string `json:"name"`
Source string `json:"source"`
Target *string `json:"target"`
Headers map[string]any `json:"headers"`
Body any `json:"body"`
CreatedAt int64 `json:"createdAt"`
}
func (*Message) ExtractBodyTo ¶
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.
Click to show internal directories.
Click to hide internal directories.