events/config/config.go

15 lines
238 B
Go
Raw Permalink Normal View History

2024-04-30 16:39:50 +00:00
package config
import "fmt"
type RMQConfig struct {
Host string
Port int
User string
Password string
}
func (c *RMQConfig) URL() string {
return fmt.Sprintf("amqp://%s:%s@%s:%d/", c.User, c.Password, c.Host, c.Port)
}