Documentation ¶
Index ¶
Constants ¶
View Source
const ( DELETE_QUEUE = "delete_queue" UPDATE_QUEUE = "update_queue" CREATE_BLOG_QUEUE = "create_blog_queue" AppName = "mq" )
Variables ¶
This section is empty.
Functions ¶
func LoadMQConfigFromENV ¶
func LoadMQConfigFromENV() error
Types ¶
type MQConfig ¶
type MQConfig struct {
RabbitMQ *RabbitMQ `json:"rabbitmq" toml:"rabbitmq"`
}
func ConfigFromENV ¶
func ConfigFromENV() *MQConfig
func DefaultMQConfig ¶
func DefaultMQConfig() *MQConfig
type RabbitMQ ¶
type RabbitMQ struct { Host string `json:"host" toml:"host" env:"RABBITMQ_HOST"` Port int `json:"port" toml:"port" env:"RABBITMQ_PORT"` User string `json:"user" toml:"user" env:"RABBITMQ_USER"` Password string `json:"password" toml:"password" env:"RABBITMQ_PASSWORD"` }
func (*RabbitMQ) GetAddress ¶
Click to show internal directories.
Click to hide internal directories.