Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/config/email.go
akuma06 6481e90a0c Golint friendly next (#756)
* Gofmt friendly

Keeping Go source code in line with what they preconize

* Golint Friendly Next

So I have made some variables unexported
Added comments in every function that I know what it does
Removed some deprecated stuff that I was sure of
Added a comment on possible deprecated methods "Is it deprecated?"
Changed some variable/method name according to golint recommendations

* Update filelist.go
2017-05-26 12:12:52 +02:00

28 lignes
869 o
Go

package config
import "time"
// TODO: Perform email configuration at runtime
// Future hosts shouldn't have to rebuild the binary to update a setting
const (
// SendEmail : Enable Email
SendEmail = true
// EmailFrom : email address by default
EmailFrom = "donotrespond@nyaa.pantsu.cat"
// EmailTestTo : when testing to who send email
EmailTestTo = ""
// EmailHost : Host of mail server
EmailHost = "localhost"
// EmailUsername : Username needed for the connection
EmailUsername = ""
// EmailPassword : Password needed for the connection
EmailPassword = ""
// EmailPort : Mail Server port
EmailPort = 465
// EmailTimeout : Timeout for waiting server response
EmailTimeout = 10 * time.Second
)
// EmailTokenHashKey : /!\ Email hash for generating email activation token /!\
var EmailTokenHashKey = []byte("CHANGE_THIS_BEFORE_DEPLOYING_YOU_GIT")