Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DynamoDBClient *dynamodb.Client TableName string )
Functions ¶
func DeleteSubscription ¶
DeleteSubscription deletes a subscription via its email address and ID.
Types ¶
type Subscription ¶
type Subscription struct { EmailAddress string `json:"emailAddress" dynamodbav:"emailAddress"` ID string `json:"id" dynamodbav:"id"` IsConfirmed bool `json:"isConfirmed" dynamodbav:"isConfirmed"` }
func GetSubscription ¶
func GetSubscription(ctx context.Context, emailAddress string) (*Subscription, error)
GetSubscription fetches a subscription via its email address.
func GetSubscriptions ¶
func GetSubscriptions(ctx context.Context) ([]*Subscription, error)
GetSubscriptions fetches a slice of subscriptions.
Click to show internal directories.
Click to hide internal directories.