Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (*Config) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface
type DynamicSource ¶
type DynamicSource interface { // SetDependencyHook sets a hook which will be called // when a dependency is added or removed. It must be // called before Serve. SetDependencyHook(hook dependencyHook) // SetSvcConfigHook sets a hook which wil be called // when the proxy config of subscribed service update. // It must be called before Serve. SetSvcConfigHook(hook svcConfigHook) // SetSvcEndpointHook sets a hook which will be called // when the endpoints of subscribed service updated. // It must be called before Serve. SetSvcEndpointHook(hook svcEndpointHook) // Serve starts observing the config update from remote. // It will return until Stop is called. Serve() // Stop stops observing the config update from remote. Stop() }
DynamicSource represents the dynamic config source.
type SvcAddEvent ¶
SvcAddEvent represents a service add event.
type SvcConfigEvent ¶
SvcConfigEvent represents a service config change event.
type SvcEndpointEvent ¶
SvcEndpointEvent represents a service endpoints change event.
type SvcRemoveEvent ¶
type SvcRemoveEvent struct {
Name string
}
SvcRemoveEvent represents a service remove event.
Click to show internal directories.
Click to hide internal directories.