Documentation
¶
Index ¶
- Variables
- func AddCallerFunctionInformation(logMessage string) string
- func GetAccountId() string
- func GetCliErrRespObject(status int, errorText string) events.APIGatewayProxyResponse
- func GetErrMsg(errCode string, errMap map[string]models.ErrorResponse) string
- func GetLogLevel() string
- func GetRegion() string
- func GetRespObject(status int, v interface{}) events.APIGatewayProxyResponse
- func GetServErrRespObject(errorText string) events.APIGatewayProxyResponse
- func GetSuccRespObject(v interface{}) events.APIGatewayProxyResponse
- func LogDebug(args ...string)
- func LogError(args ...string)
- func LogInfo(args ...string)
- func LogWarn(args ...string)
- func SendErrorResponse(errMap models.ErrorResponse) events.APIGatewayProxyResponse
- func SendErrorResponseWithErrorCode(errCode string, errMap map[string]models.ErrorResponse) events.APIGatewayProxyResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ACCOUNT_ID = "ACCOUNT_ID"
View Source
var LOG_LEVEL = "LOG_LEVEL"
View Source
var REGION = "REGION"
Functions ¶
func GetAccountId ¶
func GetAccountId() string
func GetCliErrRespObject ¶
func GetCliErrRespObject(status int, errorText string) events.APIGatewayProxyResponse
func GetLogLevel ¶
func GetLogLevel() string
func GetRespObject ¶
func GetRespObject(status int, v interface{}) events.APIGatewayProxyResponse
func GetServErrRespObject ¶
func GetServErrRespObject(errorText string) events.APIGatewayProxyResponse
func GetSuccRespObject ¶
func GetSuccRespObject(v interface{}) events.APIGatewayProxyResponse
func SendErrorResponse ¶
func SendErrorResponse(errMap models.ErrorResponse) events.APIGatewayProxyResponse
func SendErrorResponseWithErrorCode ¶
func SendErrorResponseWithErrorCode(errCode string, errMap map[string]models.ErrorResponse) events.APIGatewayProxyResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.