utils

package
v0.0.0-...-b97f737 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 AddCallerFunctionInformation

func AddCallerFunctionInformation(logMessage string) string

func GetAccountId

func GetAccountId() string

func GetCliErrRespObject

func GetCliErrRespObject(status int, errorText string) events.APIGatewayProxyResponse

func GetErrMsg

func GetErrMsg(errCode string, errMap map[string]models.ErrorResponse) string

func GetLogLevel

func GetLogLevel() string

func GetRegion

func GetRegion() 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 LogDebug

func LogDebug(args ...string)

func LogError

func LogError(args ...string)

func LogInfo

func LogInfo(args ...string)

func LogWarn

func LogWarn(args ...string)

func SendErrorResponseWithErrorCode

func SendErrorResponseWithErrorCode(errCode string, errMap map[string]models.ErrorResponse) events.APIGatewayProxyResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL