Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworksWatcher ¶
type NetworksWatcher interface {
// AddNetworksHandler registers a callback handler for changes to the networks config.
AddNetworksHandler(func()) *WatcherHandlerRegistration
// DeleteNetworksHandler unregisters a callback handler when remote cluster is removed.
DeleteNetworksHandler(registration *WatcherHandlerRegistration)
}
NetworksWatcher watches changes to the mesh networks config.
type Watcher ¶
type Watcher interface {
Holder
// AddMeshHandler registers a callback handler for changes to the mesh config.
AddMeshHandler(h func()) *WatcherHandlerRegistration
// DeleteMeshHandler unregisters a callback handler when remote cluster is removed.
DeleteMeshHandler(registration *WatcherHandlerRegistration)
}
Watcher is a Holder whose mesh config can be updated asynchronously.
type WatcherHandlerRegistration ¶
type WatcherHandlerRegistration struct {
// contains filtered or unexported fields
}
WatcherHandlerRegistration will be returned to caller to remove the handler later.
func NewWatcherHandlerRegistration ¶
func NewWatcherHandlerRegistration(f func()) *WatcherHandlerRegistration
func (*WatcherHandlerRegistration) Remove ¶
func (r *WatcherHandlerRegistration) Remove()
Click to show internal directories.
Click to hide internal directories.