config

package
Version: v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerAddress    string `envconfig:"BROKER_ADDRESS" default:"amqp://127.0.0.1:5672"`
	PostmarkApiUrl   string `envconfig:"POSTMARK_API_URL" default:"https://api.postmarkapp.com/email/withTemplate"`
	PostmarkApiToken string `envconfig:"POSTMARK_API_TOKEN" required:"true"`

	PostmarkEmailFrom            string `envconfig:"POSTMARK_EMAIL_FROM" required:"true"`
	PostmarkEmailCc              string `envconfig:"POSTMARK_EMAIL_CC" default:""`
	PostmarkEmailBcc             string `envconfig:"POSTMARK_EMAIL_BCC" default:""`
	PostmarkEmailTrackOpens      bool   `envconfig:"POSTMARK_EMAIL_TRACK_OPENS" default:"false"`
	PostmarkEmailTrackTrackLinks string `envconfig:"POSTMARK_EMAIL_TRACK_LINKS" default:""`
}

func NewConfig

func NewConfig() (*Config, error)

Source Files

Jump to

Keyboard shortcuts

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