mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
24 lines
695 B
Go
24 lines
695 B
Go
package krakend
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/luraproject/lura/v2/config"
|
|
"github.com/luraproject/lura/v2/logging"
|
|
"github.com/luraproject/lura/v2/sd/dnssrv"
|
|
)
|
|
|
|
// RegisterSubscriberFactories registers all the available sd adaptors
|
|
func RegisterSubscriberFactories(_ context.Context, _ config.ServiceConfig, _ logging.Logger) func(n string, p int) {
|
|
// register the dns service discovery
|
|
dnssrv.Register()
|
|
|
|
return func(name string, port int) {}
|
|
}
|
|
|
|
type registerSubscriberFactories struct{}
|
|
|
|
func (registerSubscriberFactories) Register(ctx context.Context, cfg config.ServiceConfig, logger logging.Logger) func(n string, p int) {
|
|
return RegisterSubscriberFactories(ctx, cfg, logger)
|
|
}
|