Categorygithub.com/Falokut/email_service
repository
0.0.0-20240305202847-5b9e52f91da2
Repository: https://github.com/falokut/email_service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Email service

Go Report Card go.dev reference GitHub go.mod Go version Go License

Content


Configuration

  1. Create a configuration file or change the config.yml file in docker\containers-configs. If you are creating a new configuration file, specify the path to it in docker-compose volume section (your-path/config.yml:configs/)
  2. Configure kafka broker example compose file

Configuration params info

if supported values is empty, then any type values are supported

yml nameyml sectionenv nameparam typedescriptionsupported values
log_levelLOG_LEVELstringlogging levelpanic, fatal, error, warning, warn, info, debug, trace
email_passwordmail_senderEMAIL_PASSWORDstringpassword or api key
email_portmail_senderEMAIL_PORTintsmtp server port
email_hostmail_senderEMAIL_PASSWORDstringsmtp server host name
email_addressmail_senderEMAIL_ADDRESSstringemail address from which the emails will be sent
email_loginmail_senderEMAIl_LOGINstring
enable_TLSmail_senderENABLE_TLSboolenable or disable tls for stmp server connection
addrcinema_service_configCINEMA_SERVICE_ADDRESSstringcinema service addressall valid addresses formatted like host:port or ip-address:port
secure_configcinema_service_confignested yml configuration secure connection config
addrmovies_service_configMOVIES_SERVICE_ADDRESSstringmovies service addressall valid addresses formatted like host:port or ip-address:port
secure_configmovies_service_confignested yml configuration secure connection config
subjectemail_verificationEMAIL_VERIFICATION_SUBJECTstringsubject for mail
templateemail_verificationEMAIL_VERIFICATION_TEMPLATEstringhtml template name for mail
subjectchange_passwordCHANGE_PASSWORD_SUBJECTstringsubject for mail
templatechange_passwordCHANGE_PASSWORD_TEMPLATEstringhtml template name for mail
subjectorder_createdORDER_CREATED_SUBJECTstringsubject for mail
templateorder_createdORDER_CREATED_TEMPLATEstringhtml template name for mail
orders_eventsnested yml configuration kafka reader configconfiguration for kafka connection
tokens_delivery_requestsnested yml configuration kafka reader configconfiguration for kafka connection

Secure connection config

yml nameparam typedescriptionsupported values
dial_methodstringdial methodINSECURE,INSECURE_SKIP_VERIFY,CLIENT_WITH_SYSTEM_CERT_POOL
server_namestringserver name overriding, used when dial_method=CLIENT_WITH_SYSTEM_CERT_POOL

Kafka reader config

yml nameenv nameparam typedescriptionsupported values
brokers[]string, array of stringslist of all kafka brokers
group_idstringid or name for consumer group
read_batch_timeouttime.Duration with positive durationamount of time to wait to fetch message from kafka messages batchsupported values

Author

  • @Falokut - Primary author of the project

License

This project is licensed under the terms of the MIT License.