Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GO Email Worker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pasan Mallawaarachchi
GO Email Worker
Commits
5b1b6c78
Commit
5b1b6c78
authored
Apr 04, 2019
by
Pasan Mallawaarachchi
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
0d911a0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
116 deletions
+126
-116
.DS_Store
.DS_Store
+0
-0
worker.go
worker.go
+126
-116
No files found.
.DS_Store
0 → 100644
View file @
5b1b6c78
File added
worker.go
View file @
5b1b6c78
...
...
@@ -120,6 +120,12 @@ func main() {
panic
(
configErr
)
}
_
,
reqErrOutbox
:=
http
.
NewRequest
(
config
.
Requests
.
Get
,
config
.
Curl
.
CheckMail
,
nil
)
if
reqErrOutbox
!=
nil
{
fmt
.
Println
(
"Error Connectiong to CouchDB"
)
os
.
Exit
(
1
)
}
else
{
if
config
.
AppMod
.
Production
==
"0"
{
fmt
.
Println
(
"Starting the Email Manager..."
)
}
...
...
@@ -262,6 +268,7 @@ func main() {
close
(
outboxReadTime
)
close
(
outboxDeleteTime
)
waitGroup
.
Wait
()
}
}
func
worker
(
i
int
)
{
...
...
@@ -465,6 +472,9 @@ func getFile(fileName, url string) {
// Write the body to file
_
,
err
=
io
.
Copy
(
out
,
resp
.
Body
)
if
err
!=
nil
{
panic
(
err
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment