- Add Package Pooler For SMTP :

* implement SMTP lib interface
* check number of sent mail in a time lapse before sending new mail
* if time since last reset is over, reset counter
* add feature to call a user function on each counter reset
- Pkg SMTP : Fix race detection & segFault
- Pkg Mailer : add new function to parse all template value with the given map[string]string
This commit is contained in:
Nicolas JUHEL
2021-12-29 16:07:09 +01:00
parent c37dd090b6
commit 561a4c923b
10 changed files with 561 additions and 83 deletions

View File

@@ -39,16 +39,17 @@ const (
MinPkgLDAP = 1000
MinPkgMail = 1100
MinPkgMailer = 1200
MinPkgNetwork = 1300
MinPkgNats = 1400
MinPkgNutsDB = 1500
MinPkgOAuth = 1600
MinPkgAws = 1700
MinPkgRouter = 1800
MinPkgSemaphore = 1900
MinPkgSMTP = 2000
MinPkgStatic = 2100
MinPkgVersion = 2200
MinPkgMailPooler = 1300
MinPkgNetwork = 1400
MinPkgNats = 1500
MinPkgNutsDB = 1600
MinPkgOAuth = 1700
MinPkgAws = 1800
MinPkgRouter = 1900
MinPkgSemaphore = 2000
MinPkgSMTP = 2100
MinPkgStatic = 2200
MinPkgVersion = 2300
MinAvailable = 4000