Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogLevelDebug defines the debug log level LogLevelDebug string = "DEBUG" // LogLevelInfo defines the info log level LogLevelInfo string = "INFO" // MessageAttribAppName - SQS message attribute that stores the application MessageAttribAppName string = "APPLICATION_NAME" // MessageAttribAppVers - SQS message attribute that stores the application version MessageAttribAppVers string = "APPLICATION_VERS" )
Constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBHandler ¶
type DBHandler struct {
// contains filtered or unexported fields
}
DBHandler points back to the interface
type DynamoDBAPI ¶
type DynamoDBAPI interface {
GetItem(*dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
}
DynamoDBAPI - bits from the DynamoDB interface we need
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles incoming logger requests.
func NewHandler ¶
func NewHandler(ddb DynamoDBAPI, sqs SQSAPI) *Handler
NewHandler initializes and returns a new Handler.
type Item ¶
type Item struct { Application string `json:"application"` Version string `json:"version"` Loghandler string `json:"loghandler"` }
Item - represents the application table
type SQSAPI ¶
type SQSAPI interface { DeleteMessage(*sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error) GetQueueUrl(*sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error) SendMessage(*sqs.SendMessageInput) (*sqs.SendMessageOutput, error) }
SQSAPI - bits from the SQS interface we need
type SQSHandler ¶
type SQSHandler struct {
// contains filtered or unexported fields
}
SQSHandler points back to the interface
Click to show internal directories.
Click to hide internal directories.