Documentation ¶
Index ¶
- func LogUserIn(req events.APIGatewayProxyRequest, dbClient *dynamodb.Client) (*events.APIGatewayProxyResponse, error)
- func RegisterUser(req events.APIGatewayProxyRequest, dbClient DynamoDBClient, ...) (*events.APIGatewayProxyResponse, error)
- type CreateUserInput
- type DynamoDBClient
- type HashGenerator
- type LogUserInInput
- type LogUserInOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogUserIn ¶
func LogUserIn(req events.APIGatewayProxyRequest, dbClient *dynamodb.Client) (*events.APIGatewayProxyResponse, error)
func RegisterUser ¶
func RegisterUser(req events.APIGatewayProxyRequest, dbClient DynamoDBClient, hashGenerator HashGenerator) (*events.APIGatewayProxyResponse, error)
Types ¶
type CreateUserInput ¶
type DynamoDBClient ¶
type DynamoDBClient interface { GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error) }
type HashGenerator ¶
type LogUserInInput ¶
type LogUserInOutput ¶
type LogUserInOutput struct {
AccessToken string `json:"access_token"`
}
Click to show internal directories.
Click to hide internal directories.