diff options
Diffstat (limited to 'aws.go')
-rw-r--r-- | aws.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -44,6 +44,7 @@ type AwsConn struct { downloader *s3manager.Downloader uploader *s3manager.Uploader wipequrl, prequrl, ocrqurl, analysequrl string + ocrpgqurl string wipstorageid string } @@ -105,6 +106,15 @@ func (a *AwsConn) Init() error { } a.analysequrl = *result.QueueUrl + a.Logger.Println("Getting OCR Page queue URL") + result, err = a.sqssvc.GetQueueUrl(&sqs.GetQueueUrlInput{ + QueueName: aws.String("rescribeocrpage"), + }) + if err != nil { + return errors.New(fmt.Sprintf("Error getting OCR Page queue URL: %s", err)) + } + a.ocrpgqurl = *result.QueueUrl + a.wipstorageid = "rescribeinprogress" return nil @@ -224,6 +234,10 @@ func (a *AwsConn) OCRQueueId() string { return a.ocrqurl } +func (a *AwsConn) OCRPageQueueId() string { + return a.ocrpgqurl +} + func (a *AwsConn) AnalyseQueueId() string { return a.analysequrl } |