dynamodb

package
v0.0.0-...-30af397 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDB

type DynamoDB interface {
	StorePublishStatus(ctx context.Context, status PublishStatus) error
	IsPublished(ctx context.Context, guid string) (bool, error)
}

func NewDynamoDB

func NewDynamoDB(ctx context.Context, tableName string) (DynamoDB, error)

type PublishStatus

type PublishStatus struct {
	ExpiresAt int64 `dynamodbav:"ExpiresAt"` // TTL attribute
	GUID      string
	Published string
	Title     string
}

Jump to

Keyboard shortcuts

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