Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9dc85a1963 | |||
| 91c27b30bf | |||
| 3ed094ff55 |
@@ -74,7 +74,7 @@ func (s *Service) Register() error {
|
|||||||
ID: s.GetID(),
|
ID: s.GetID(),
|
||||||
// Kind: consul.ServiceKindConnectProxy,
|
// Kind: consul.ServiceKindConnectProxy,
|
||||||
Name: s.Name,
|
Name: s.Name,
|
||||||
Address: s.Address,
|
Address: s.domain,
|
||||||
Port: s.port,
|
Port: s.port,
|
||||||
Tags: s.getTags(),
|
Tags: s.getTags(),
|
||||||
// Connect: &consul.AgentServiceConnect{Native: true},
|
// Connect: &consul.AgentServiceConnect{Native: true},
|
||||||
@@ -178,8 +178,8 @@ func (s *Service) healthCheck() (bool, error) {
|
|||||||
func (s *Service) getTags() []string {
|
func (s *Service) getTags() []string {
|
||||||
tags := []string{
|
tags := []string{
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
// "traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)",
|
"traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)",
|
||||||
"traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)",
|
// "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)",
|
||||||
"traefik.http.routers." + s.Name + ".entryPoints=https",
|
"traefik.http.routers." + s.Name + ".entryPoints=https",
|
||||||
// "traefik.http.routers." + s.Name + ".tls=true",
|
// "traefik.http.routers." + s.Name + ".tls=true",
|
||||||
"traefik.http.routers." + s.Name + ".service=" + s.Name,
|
"traefik.http.routers." + s.Name + ".service=" + s.Name,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package rabbitmq
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/streadway/amqp"
|
amqp "github.com/rabbitmq/amqp091-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Open(url string) (*amqp.Connection, *amqp.Channel, error) {
|
func Open(url string) (*amqp.Connection, *amqp.Channel, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user