mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
Complete rebrand of the fork from KrakenD naming to Hanzo Gateway: - Go package: `package krakend` → `package gateway` (9 source files) - Directory: cmd/krakend-ce → cmd/gateway, cmd/krakend-integration → cmd/gateway-integration - Config files: krakend.json → gateway.json (configs, test fixtures) - Dockerfile: user, paths, binary all renamed to gateway - K8s manifests: deployment/service/ingress names, labels, env vars (KRAKEND_PORT → GATEWAY_PORT), configmap names, mount paths - Added enableServiceLinks: false to prevent K8s service link injection - Makefile: all build/deploy targets updated - GitHub Actions: configmap and deployment references updated - Builder/systemd: init scripts, service files, logrotate renamed - Log prefix: [KRAKEND] → [GATEWAY] - Test flags: krakend_* → gateway_* - README and SECURITY.md updated Upstream references preserved (not renamed): - github.com/krakend/* import paths (external dependencies) - core.KrakendVersion, KrakendHeaderName, KrakendHeaderValue (upstream API) - X-Krakend-* HTTP headers (set by upstream Lura framework) - devopsfaith/krakend config alias keys (upstream compatibility) - krakendbf variable (upstream bloomfilter package alias)
24 lines
695 B
Go
24 lines
695 B
Go
package gateway
|
|
|
|
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)
|
|
}
|