Documentation ¶
Index ¶
- Constants
- Variables
- func DbCreateItem(dbhandle *dynamodb.DynamoDB, table_name string, v interface{}) error
- func DbGetItem(dbhandle *dynamodb.DynamoDB, table_name string, query interface{}, ...) error
- func DbQuery(dbhandle *dynamodb.DynamoDB, tableName, indexName string, limit int64, ...) (error, map[string]*dynamodb.AttributeValue)
- func GetAcceptApplicationJson() string
- func GetAccountId() string
- func GetApiGatewayHostURL() string
- func GetAppClientId() string
- func GetBaseApi() string
- func GetCliErrRespObject(status int, errorText string) events.APIGatewayProxyResponse
- func GetCognitoUser(cognitoAccessToken string) (models.AccessTokenHeader, error)
- func GetDomain(userPoolId string) (string, error)
- func GetDynamoDbConnectionByRegion() *dynamodb.DynamoDB
- func GetIDPAccessTokenURL() string
- func GetIDPAuthorizeURL() string
- func GetIDPUserEmailsURL() string
- func GetIDPUserURL() string
- func GetLambdaEnv(funtionName string) (*lambda.EnvironmentResponse, error)
- func GetLogLevel() string
- func GetRegion() string
- func GetRespObject(status int, v interface{}) events.APIGatewayProxyResponse
- func GetServErrRespObject(errorText string) events.APIGatewayProxyResponse
- func GetStageName() string
- func GetTimeToLive() string
- func GetUserPool(userPoolId string) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
- func GetUserPoolId() string
- func IsSuperAdmin(accessToken string) (bool, error)
- func LogDebug(args ...string)
- func LogError(args ...string)
- func LogInfo(args ...string)
- func LogWarn(args ...string)
- func TenantGetContext() (models.TenantContext, error)
- func TenantGetContextByReq(req events.APIGatewayProxyRequest) (models.TenantContext, error)
- func TenantGetDBName(tenctx models.TenantContext, table string) string
- func UpdateLambdaEnv(funtionName string, environment *lambda.EnvironmentResponse) error
- func UserDBGetByName(tenctx models.TenantContext, userName string) (models.UserDetails, error)
Constants ¶
View Source
const INCORRECT_USERNAME_PASSWD = "Incorrect user name or password"
Variables ¶
View Source
var ACCEPT_APPLICATION_JSON = "ACCEPT_APPLICATION_JSON"
View Source
var ACCOUNT_ID = "ACCOUNT_ID"
View Source
var AMAZON_COGNITO = ".amazoncognito.com"
View Source
var APIGATEWAYURL = "API_GATEWAY_URL"
View Source
var AUTH = ".auth."
View Source
var BASE_URL = "BASE_URL"
View Source
var LOG_LEVEL = "LOG_LEVEL"
View Source
var REGION = "REGION"
View Source
var Rainmaker_Oauth2_Authorize_URL = "Rainmaker_Oauth2_Authorize_URL"
View Source
var Rainmaker_Oauth2_Email_URL = "Rainmaker_Oauth2_Email_URL"
View Source
var Rainmaker_Oauth2_Token_URL = "Rainmaker_Oauth2_Token_URL"
View Source
var Rainmaker_Oauth2_UserInfo_URL = "Rainmaker_Oauth2_UserInfo_URL"
View Source
var STAGE_NAME = "STAGE_NAME"
View Source
var TIME_TO_LIVE = "TIME_TO_LIVE"
Functions ¶
func DbCreateItem ¶
func DbGetItem ¶
func DbGetItem(dbhandle *dynamodb.DynamoDB, table_name string, query interface{}, out interface{}) error
The entire composite key: Primary + Range Key must be used
func DbQuery ¶
func DbQuery(dbhandle *dynamodb.DynamoDB, tableName, indexName string, limit int64, startKey map[string]*dynamodb.AttributeValue, expr expression.Expression, out interface{}) (error, map[string]*dynamodb.AttributeValue)
Query based on some conditions on the composite keys
func GetAcceptApplicationJson ¶
func GetAcceptApplicationJson() string
func GetAccountId ¶
func GetAccountId() string
func GetApiGatewayHostURL ¶
func GetApiGatewayHostURL() string
func GetAppClientId ¶
func GetAppClientId() string
func GetBaseApi ¶
func GetBaseApi() string
func GetCliErrRespObject ¶
func GetCliErrRespObject(status int, errorText string) events.APIGatewayProxyResponse
func GetCognitoUser ¶
func GetCognitoUser(cognitoAccessToken string) (models.AccessTokenHeader, error)
func GetIDPAccessTokenURL ¶
func GetIDPAccessTokenURL() string
func GetIDPAuthorizeURL ¶
func GetIDPAuthorizeURL() string
func GetIDPUserEmailsURL ¶
func GetIDPUserEmailsURL() string
func GetIDPUserURL ¶
func GetIDPUserURL() string
func GetLambdaEnv ¶
func GetLambdaEnv(funtionName string) (*lambda.EnvironmentResponse, error)
func GetLogLevel ¶
func GetLogLevel() string
func GetRespObject ¶
func GetRespObject(status int, v interface{}) events.APIGatewayProxyResponse
func GetServErrRespObject ¶
func GetServErrRespObject(errorText string) events.APIGatewayProxyResponse
func GetStageName ¶
func GetStageName() string
func GetTimeToLive ¶
func GetTimeToLive() string
func GetUserPool ¶
func GetUserPool(userPoolId string) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
func GetUserPoolId ¶
func GetUserPoolId() string
func IsSuperAdmin ¶
func TenantGetContext ¶
func TenantGetContext() (models.TenantContext, error)
func TenantGetContextByReq ¶
func TenantGetContextByReq(req events.APIGatewayProxyRequest) (models.TenantContext, error)
func TenantGetDBName ¶
func TenantGetDBName(tenctx models.TenantContext, table string) string
func UpdateLambdaEnv ¶
func UpdateLambdaEnv(funtionName string, environment *lambda.EnvironmentResponse) error
func UserDBGetByName ¶
func UserDBGetByName(tenctx models.TenantContext, userName string) (models.UserDetails, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.