registrar

package
v0.0.0-...-f5f7d25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopRoutesConfigWatcher

func NewNoopRoutesConfigWatcher() *noopRoutesConfigWatcher

func NewRoutesConfigWatcher

func NewRoutesConfigWatcher(logger lager.Logger, watchInterval time.Duration, globs []string, host string, routeDiscoveredChan chan config.Route, routeRemovedChan chan config.Route) *routesConfigWatcher

Types

type PeriodicHealthcheckCloseChan

type PeriodicHealthcheckCloseChan struct {
	// contains filtered or unexported fields
}

type PeriodicHealthcheckCloseChans

type PeriodicHealthcheckCloseChans struct {
	// contains filtered or unexported fields
}

func (*PeriodicHealthcheckCloseChans) Add

func (p *PeriodicHealthcheckCloseChans) Add(route config.Route) chan struct{}

func (*PeriodicHealthcheckCloseChans) CloseAll

func (p *PeriodicHealthcheckCloseChans) CloseAll()

func (*PeriodicHealthcheckCloseChans) CloseForRoute

func (p *PeriodicHealthcheckCloseChans) CloseForRoute(route config.Route)

type Registrar

type Registrar interface {
	Run(signals <-chan os.Signal, ready chan<- struct{}) error
}

func NewRegistrar

func NewRegistrar(
	clientConfig config.Config,
	healthChecker healthchecker.HealthChecker,
	logger lager.Logger,
	messageBus messagebus.MessageBus,
	routingAPI api,
	dynamicConfigDiscoveryInterval time.Duration,
) Registrar

type RoutesConfigSchema

type RoutesConfigSchema struct {
	Routes []config.RouteSchema `json:"routes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL