Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalItem ¶
func MarshalItem(item interface{}) (map[string]*dynamodb.AttributeValue, error)
MarshalItem as a dynamodbAtributeValue
func UnmarshalItem ¶
func UnmarshalItem(result map[string]*dynamodb.AttributeValue, item interface{}) error
UnmarshalItem -
Types ¶
type DBClient ¶
type DBClient struct {
// contains filtered or unexported fields
}
DBClient connection struct
func (*DBClient) FindUserByEmail ¶
func (db *DBClient) FindUserByEmail(email *string) (*dynamodb.ScanOutput, error)
FindUserByEmail at DynamoDB
func (*DBClient) GetItemByID ¶
func (db *DBClient) GetItemByID(id *string) (*dynamodb.GetItemOutput, error)
GetItemByID -
func (*DBClient) SaveItem ¶
func (db *DBClient) SaveItem(item map[string]*dynamodb.AttributeValue) (*dynamodb.PutItemOutput, error)
SaveItem into Dynamodb
type Request ¶
type Request events.APIGatewayProxyRequest
Request wraps the base API Gateway request
type Response ¶
type Response events.APIGatewayProxyResponse
Response wraps the base API Gateway response
Click to show internal directories.
Click to hide internal directories.