chore: initial import from sless/shared-sqs (v0.1.14)
- Standalone SQS-service repository - Multi-tenant message queue service, AWS SQS compatible - Based on GoAws, with mutable tenants, auth, WebUI, Redis persistence - Ready for independent development and deployment - See doc/ and README.md for architecture and usage
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package models
|
||||
|
||||
/*** config ***/
|
||||
type EnvQueue struct {
|
||||
Name string
|
||||
ReceiveMessageWaitTimeSeconds int
|
||||
RedrivePolicy string
|
||||
MaximumMessageSize int
|
||||
VisibilityTimeout int
|
||||
MessageRetentionPeriod int
|
||||
}
|
||||
|
||||
type EnvQueueAttributes struct {
|
||||
VisibilityTimeout int
|
||||
ReceiveMessageWaitTimeSeconds int
|
||||
MaximumMessageSize int
|
||||
MessageRetentionPeriod int // seconds
|
||||
}
|
||||
|
||||
type Environment struct {
|
||||
Host string
|
||||
Port string
|
||||
SqsPort string
|
||||
Region string
|
||||
AccountID string
|
||||
LogToFile bool
|
||||
LogFile string
|
||||
EnableDuplicates bool
|
||||
Queues []EnvQueue
|
||||
QueueAttributeDefaults EnvQueueAttributes
|
||||
RandomLatency RandomLatency
|
||||
}
|
||||
|
||||
type RandomLatency struct {
|
||||
Min int
|
||||
Max int
|
||||
}
|
||||
Reference in New Issue
Block a user