Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct { // IteratorType is the type of the current iterator. IteratorType models.IteratorType `json:"iterator_type" validate:"required,iterator_type"` // CreatedAt is the Unix time from which the system should receive events of the resource in the CDC iterator. CreatedAt int64 `json:"created_at" validate:"required"` // Cursor is the resource or event identifier for receiving shifted data in the following requests. Cursor string `json:"cursor"` // Index is the current index of the returning record from the batch of previously received resources. Index int `json:"index"` }
A Position represents a Stripe position.
func ParseSDKPosition ¶
ParseSDKPosition unmarshal sdk.Position and returns Position.
func (Position) FormatSDKPosition ¶
FormatSDKPosition marshals Position and returns sdk.Position.
Click to show internal directories.
Click to hide internal directories.