Documentation ¶
Index ¶
Constants ¶
View Source
const ( HttpGetMethod = "get" HttpPostMethod = "post" HttpPutMethod = "put" HttpPatchMethod = "patch" HttpDeleteMethod = "delete" SignUpPath = "/signup" LogInPath = "/login" )
View Source
const ( ContentTypeHeader = "Content-Type" ContentTypeApplicationJSON = "application/json" )
View Source
const ( AUTH_PARAMETER_USERNAME = "USERNAME" AUTH_PARAMETER_PASSWORD = "PASSWORD" EmailNotFound = "email not found" EmailNotConfirmed = "email not confirmed" EmailAlreadyRegistered = "email already registered" SignUpSuccessFul = "sign up successful" CheckEmailForVerificationLink = "please check your email for verification link" WrongPassword = "wrong password" )
View Source
const ( AWSRegionEnvironmentVariable = "REGION" BooksTableNameEnvironmentVariable = "TABLE_NAME" BooksCategoryIndexNameEnvironmentVariable = "TABLE_CATEGORY_INDEX_NAME" BooksTitleIndexNameEnvironmentVariable = "TABLE_TITLE_INDEX_NAME" BooksTopicArnEnvironmentVariable = "BOOKS_TOPIC_ARN" CognitoUserPoolIDEnvironmentVariable = "COGNITO_USER_POOL_ID" CognitoAppClientIDEnvironmentVariable = "COGNITO_APP_CLIENT_ID" )
View Source
const ( LambdaAliasHeader = "alias" LambdaDefaultAlias = "dev" )
View Source
const ( BooksMetricNamespace = "BooksServerlessPOC" EnvironmentDimensionName = "Environment" InsertedBooksMetricName = "InsertedBooks" FetchedBooksMetricName = "FetchedBooks" UpdatedBooksMetricName = "UpdatedBooks" DeletedBooksMetricName = "DeletedBooks" )
View Source
const ( DynamoDBInsertEventName = "INSERT" DynamoDBModifyEventName = "MODIFY" DynamoDBRemoveEventName = "REMOVE" )
Variables ¶
View Source
var ( UserAlreadyExistsErr = errors.New("user already exists") UserNotFoundErr = errors.New("user not found") UserNotConfirmedErr = errors.New("user not confirmed") NotAuthorizedErr = errors.New("not authorized") )
View Source
var ( MethodNotAllowedErr = errors.New("method not allowed") InvalidPayloadErr = errors.New("invalid payload") DynamoDBActionErr = errors.New("dynamodb error") DynamoDBUnmarshalErr = errors.New("error unmarshalling dynamodb items") CWLogsErr = errors.New("could not log request") MarshalBooksErr = errors.New("error marshalling books") SNSPublishErr = errors.New("publish sns error") PathNotFoundErr = errors.New("path not found") TokenMarshalErr = errors.New("error marshalling token") )
Functions ¶
func GetCorsHeaders ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.