events/config/config.go
2024-04-30 18:39:50 +02:00

14 lines
238 B
Go

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)
}