Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct {
Client client.Client
Listeners []ControllerListener
PollInterval time.Duration
}
ControllerConfig options
type ControllerListener ¶
ControllerListener is notified of changes to controller
type Monitor ¶
Monitor a source
func NewController ¶
func NewController(conf ControllerConfig) Monitor
NewController instantiates a new instance
type RegistryConfig ¶
RegistryConfig options
type RegistryListener ¶
type RegistryListener interface {
CatalogChange([]client.ServiceInstance) error
}
RegistryListener is notified of changes to the registry catalog
type RegistryMonitor ¶ added in v0.4.1
type RegistryMonitor interface {
Monitor
client.Discovery
AddListener(listener RegistryListener)
}
RegistryMonitor Definition:
func NewRegistry ¶
func NewRegistry(conf RegistryConfig) RegistryMonitor
NewRegistry instantiates new instance
Source Files
¶
- controller.go
- monitor.go
- registry.go
Click to show internal directories.
Click to hide internal directories.