Documentation
¶
Overview ¶
Package config loads the service configuration from environment variables, composing the SMTP and RabbitMQ configs already provided by go-types with the two values that belong to this service: the destination address and the queue to consume from.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingDestination = errors.New("DESTINATION env variable must be set")
ErrMissingDestination is returned when the DESTINATION env variable is not set.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SMTPConfig *smtpconfig.Config
Destination string
NotifyQueue string
RabbitmqConfig *rabbitmqconfig.Config
}
Config holds everything the composition root needs to wire the service: where to consume from (RabbitMQ + queue) and where to deliver to (SMTP + destination address).
Click to show internal directories.
Click to hide internal directories.