{"modulePath":"github.com/bradmccoydev/LogController","version":"v0.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lambda\n\n## Constants\n\n```go\nconst (\n\n\t// LogLevelDebug defines the debug log level\n\tLogLevelDebug string = \"DEBUG\"\n\n\t// LogLevelInfo defines the info log level\n\tLogLevelInfo string = \"INFO\"\n\n\t// MessageAttribAppName - SQS message attribute that stores the application\n\tMessageAttribAppName string = \"APPLICATION_NAME\"\n\n\t// MessageAttribAppVers - SQS message attribute that stores the application version\n\tMessageAttribAppVers string = \"APPLICATION_VERS\"\n)\n```\nConstants\n\n## Types\n\n```go\ntype DBHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nDBHandler points back to the interface\n\n```go\nfunc NewDB(c DynamoDBAPI) *DBHandler\n```\nNewDB returns a new DynamoDB handler\n\n```go\ntype DynamoDBAPI interface {\n\tGetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)\n}\n```\nDynamoDBAPI - bits from the DynamoDB interface we need\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\nHandler handles incoming logger requests.\n\n```go\nfunc NewHandler(ddb DynamoDBAPI, sqs SQSAPI) *Handler\n```\nNewHandler initializes and returns a new Handler.\n\n```go\nfunc (h *Handler) Handle(ctx context.Context, sqsEvent events.SQSEvent) error\n```\nHandle handles the logger request.\n\n```go\ntype Item struct {\n\tApplication string `json:\"application\"`\n\tVersion     string `json:\"version\"`\n\tLoghandler  string `json:\"loghandler\"`\n}\n```\nItem - represents the application table\n\n```go\ntype SQSAPI interface {\n\tDeleteMessage(*sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)\n\tGetQueueUrl(*sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)\n\tSendMessage(*sqs.SendMessageInput) (*sqs.SendMessageOutput, error)\n}\n```\nSQSAPI - bits from the SQS interface we need\n\n```go\ntype SQSHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nSQSHandler points back to the interface\n\n```go\nfunc NewSQS(c SQSAPI) *SQSHandler\n```\nNewSQS returns a new SQS handler\n\n","path":"github.com/bradmccoydev/LogController/lambda","name":"lambda","synopsis":"","isRedistributable":true}
