New communications package

Support for Slack, SMSGlobal, SMTP and Telegram

Supersedes: https://github.com/thrasher-/gocryptotrader/pull/126
This commit is contained in:
Ryan O'Hara-Reid
2018-05-21 17:08:44 +10:00
committed by Adrian Gallagher
parent d34fc9aae8
commit 9d0616d8cf
26 changed files with 2748 additions and 868 deletions

View File

@@ -1,6 +1,7 @@
{
"Name": "Skynet",
"EncryptConfig": 0,
"GlobalHTTPTimeout": 15000000000,
"CurrencyConfig": {
"ForexProviders": [
{
@@ -47,7 +48,45 @@
},
"FiatDisplayCurrency": "USD"
},
"GlobalHTTPTimeout": 15000000000,
"Communications": {
"Slack": {
"Name": "Slack",
"Enabled": false,
"Verbose": false,
"TargetChannel": "general",
"VerificationToken": "testtest"
},
"SMSGlobal": {
"Name": "SMSGlobal",
"Enabled": true,
"Verbose": false,
"Username": "1234",
"Password": "12334",
"Contacts": [
{
"Name": "StyleGherkin",
"Number": "1231424",
"Enabled": true
}
]
},
"SMTP": {
"Name": "SMTP",
"Enabled": false,
"Verbose": false,
"Host": "smtp.google.com",
"Port": "537",
"AccountName": "some",
"AccountPassword": "password",
"RecipientList": "lol123@gmail.com"
},
"Telegram": {
"Name": "Telegram",
"Enabled": false,
"Verbose": false,
"VerificationToken": "testest"
}
},
"PortfolioAddresses": {
"Addresses": [
{
@@ -76,18 +115,6 @@
}
]
},
"SMSGlobal": {
"Enabled": true,
"Username": "1234",
"Password": "12334",
"Contacts": [
{
"name": "StyleGherkin",
"number": "1231424",
"enabled": true
}
]
},
"Webserver": {
"Enabled": false,
"AdminUsername": "admin",