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
70c607de
Commit
70c607de
authored
Apr 30, 2019
by
Pasan Mallawaarachchi
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port change
parent
70caa1e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
config.yaml
config.yaml
+6
-6
worker.go
worker.go
+2
-2
No files found.
config.yaml
View file @
70c607de
couchdb
:
couchdb
:
port
:
'
84'
port
:
'
59
84'
host
:
couchdb_emanger
host
:
couchdb_emanger
username
:
root
username
:
root
password
:
root
password
:
root
curl
:
curl
:
check_mail
:
http://root:root@couchdb_emanger:84/outbox/_all_docs/?limit=1
#http://root:root@0.0.0.0:5984/outbox/_all_docs/?limit=1
check_mail
:
http://root:root@couchdb_emanger:
59
84/outbox/_all_docs/?limit=1
#http://root:root@0.0.0.0:5984/outbox/_all_docs/?limit=1
get_outbox_mail
:
http://root:root@couchdb_emanger:84/outbox/
get_outbox_mail
:
http://root:root@couchdb_emanger:
59
84/outbox/
delete_outbox_mail
:
http://root:root@couchdb_emanger:84/outbox/
delete_outbox_mail
:
http://root:root@couchdb_emanger:
59
84/outbox/
add_sent_mail
:
http://root:root@couchdb_emanger:84/sentitems/
add_sent_mail
:
http://root:root@couchdb_emanger:
59
84/sentitems/
add_mail_log
:
http://root:root@couchdb_emanger:84/mail_logs/
add_mail_log
:
http://root:root@couchdb_emanger:
59
84/mail_logs/
protocols
:
protocols
:
method
:
http://
method
:
http://
requests
:
requests
:
...
...
worker.go
View file @
70c607de
...
@@ -154,7 +154,7 @@ func main() {
...
@@ -154,7 +154,7 @@ func main() {
if
reqErr
!=
nil
{
if
reqErr
!=
nil
{
alert
:=
" Error creating request to OUTBOX DB
\n
"
+
reqErr
.
Error
()
alert
:=
" Error creating request to OUTBOX DB
\n
"
+
reqErr
.
Error
()
alertAdmin
(
alert
)
alertAdmin
(
alert
)
panic
(
reqErr
)
//
panic(reqErr)
}
}
req
.
Header
.
Set
(
config
.
Requests
.
HeaderType
,
config
.
Requests
.
HeaderJson
)
req
.
Header
.
Set
(
config
.
Requests
.
HeaderType
,
config
.
Requests
.
HeaderJson
)
...
@@ -162,7 +162,7 @@ func main() {
...
@@ -162,7 +162,7 @@ func main() {
if
respErr
!=
nil
{
if
respErr
!=
nil
{
alert
:=
" Error in getting email from the OUTBOX DB
\n
"
+
respErr
.
Error
()
alert
:=
" Error in getting email from the OUTBOX DB
\n
"
+
respErr
.
Error
()
alertAdmin
(
alert
)
alertAdmin
(
alert
)
panic
(
respErr
)
//
panic(respErr)
}
}
defer
resp
.
Body
.
Close
()
defer
resp
.
Body
.
Close
()
respbody
,
_
:=
ioutil
.
ReadAll
(
resp
.
Body
)
respbody
,
_
:=
ioutil
.
ReadAll
(
resp
.
Body
)
...
...
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