Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDBService ¶
DynamoDBService provides methods to use DynamoDB via the AWS SDK
func NewDynamoDBService ¶
func NewDynamoDBService() *DynamoDBService
NewDynamoDBService creates a new DynamoDBService by loading AWS credentials from ~/.aws/credentials and AWS region from ~/.aws/config
func (*DynamoDBService) GetUser ¶
func (db *DynamoDBService) GetUser(userID string) (*User, error)
GetUser returns a user from DynamoDB
func (*DynamoDBService) PutUser ¶
func (db *DynamoDBService) PutUser(user *User) error
PutUser creates and updates a new user in DynamoDB
Click to show internal directories.
Click to hide internal directories.