clients

package
v0.0.0-...-83cc74b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CDNHostname string

CDNHostname defines the CDN hostname.

View Source
var EchoInstance = echo.New()

EchoInstance defines the Echo HTTP instance.

View Source
var MailgunClient = mailgun.NewMailgun(env.RequiredEnvs("MAILGUN_DOMAIN")["MAILGUN_DOMAIN"], env.RequiredEnvs("MAILGUN_KEY")["MAILGUN_KEY"])

MailgunClient defines the client which is used for mailgun.

View Source
var MongoDatabase *mongo.Database

MongoDatabase is the MongoDB database we are using.

View Source
var S3Instance *s3.S3

S3Instance is the exported S3 instance.

Functions

func CreateMongoClient

func CreateMongoClient() error

CreateMongoClient is used to create the MongoDB client.

func S3Init

func S3Init()

S3Init is used to initialse S3.

func SendEmail

func SendEmail(ToAddress, Subject, HTML string) error

SendEmail is used to send a email.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL