43 lines
1.3 KiB
Go
43 lines
1.3 KiB
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Version — версия сервиса. Переопределяется при сборке:
|
|
// -ldflags "-X shared-sqs/app/models.Version=<версия>"
|
|
var Version = "dev"
|
|
|
|
var BaseXmlns = "http://queue.amazonaws.com/doc/2012-11-05/"
|
|
var BaseResponseMetadata = ResponseMetadata{RequestId: "00000000-0000-0000-0000-000000000000"}
|
|
|
|
var DeduplicationPeriod = 5 * time.Minute
|
|
|
|
var AvailableQueueAttributes = map[string]bool{
|
|
"DelaySeconds": true,
|
|
"MaximumMessageSize": true,
|
|
"MessageRetentionPeriod": true,
|
|
"Policy": true,
|
|
"ReceiveMessageWaitTimeSeconds": true,
|
|
"VisibilityTimeout": true,
|
|
"RedrivePolicy": true,
|
|
"RedriveAllowPolicy": true,
|
|
"ApproximateNumberOfMessages": true,
|
|
"ApproximateNumberOfMessagesDelayed": true,
|
|
"ApproximateNumberOfMessagesNotVisible": true,
|
|
"CreatedTimestamp": true,
|
|
"LastModifiedTimestamp": true,
|
|
"QueueArn": true,
|
|
}
|
|
|
|
const (
|
|
ProtocolSQS Protocol = "sqs"
|
|
ProtocolHTTP Protocol = "http"
|
|
ProtocolHTTPS Protocol = "https"
|
|
ProtocolDefault Protocol = "default"
|
|
)
|
|
|
|
const (
|
|
MessageStructureJSON MessageStructure = "json"
|
|
)
|