Documentation ¶
Index ¶
Constants ¶
View Source
const MsgContentType = "text/plain"
Variables ¶
View Source
var ConfigFilePath string
Functions ¶
func ReadConfig ¶
func ReadConfig()
Types ¶
type Config ¶
type Config struct { Smtp struct { Host string Port int User string Password string } RabbitMQ struct { Host string User string Password string QueueName string `yaml:"queue_name"` ExchangeName string `yaml:"exchange_name"` ExchangeKind string `yaml:"exchange_kind"` Declare bool } }
var Conf *Config
type Email ¶
type RabbitMQ ¶
type RabbitMQ struct { Host string QueueName string ExchangeName string ExchangeKind string Declare bool Connection *amqp.Connection Channel *amqp.Channel }
func NewRabbitMQ ¶
func (*RabbitMQ) StartConsumer ¶
Click to show internal directories.
Click to hide internal directories.