feedrules

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataType

func GetDataType() types.DataType

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL