Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataType ¶
func GetSyncStateExpiresAfter ¶
func GetSyncStateExpiresAfter(timeProvider clock.TimeProvider) int64
func ReconstructFeedSyncLastEvaluatedKeyFromDate ¶
func ReconstructFeedSyncLastEvaluatedKeyFromDate(feedSyncCursor string) dynamodb.PrimaryKey
Types ¶
type FeedRuleRow ¶
type FeedRuleRow struct { dynamodb.PrimaryKey rules.SantaRule ExpiresAfter int64 `dynamodbav:"ExpiresAfter,omitempty"` DataType types.DataType `dynamodbav:"DataType"` }
func ConstructFeedRuleFromBaseRule ¶
func ConstructFeedRuleFromBaseRule( timeProvider clock.TimeProvider, rule rules.SantaRule, ) *FeedRuleRow
func GetPaginatedFeedRules ¶
func GetPaginatedFeedRules( client dynamodb.QueryAPI, limit int, exclusiveStartKey *dynamodb.PrimaryKey, ) ( items []*FeedRuleRow, lastEvaluatedKey *dynamodb.PrimaryKey, err error, )
GetPaginatedFeedRules returns zero or more rules on the feed, up to the limit If there are more rules to paginate through, will return a lastEvaluatedKey that can be passed in as the exclusiveStartKey in subsequent requests. Otherwise, lastEvaluatedKey is nil when there are no more items.
Click to show internal directories.
Click to hide internal directories.