Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigEvent ¶
type ConfigEvent struct { EventType ConfigEventType Path string ConfigEntry *ConfiguratorConfig }
ConfigEvent ...
type ConfigEventType ¶
type ConfigEventType int
ConfigEventType ...
const ( ConfigEntryAdded ConfigEventType = iota ConfigEntryDeleted ConfigEntryChanged )
Enumeration of ConfigEventType
type ConfigItem ¶
type ConfigItem struct { Type string `yaml:"type"` Enabled bool `yaml:"enabled"` Addresses []string `yaml:"addresses"` ProviderAddresses []string `yaml:"providerAddresses"` Services []string `yaml:"services"` Applications []string `yaml:"applications"` Parameters map[string]string `yaml:"parameters"` Side string `yaml:"side"` }
ConfigItem ...
type ConfiguratorConfig ¶
type ConfiguratorConfig struct { ConfigVersion string `yaml:"configVersion"` Scope string `yaml:"scope"` Key string `yaml:"key"` Enabled bool `yaml:"enabled"` Configs []ConfigItem `yaml:"configs"` }
ConfiguratorConfig ...
type Instance ¶
Instance is the instance of the service provider instance lables includes:
appName name of the application which host the service itself language language the service is build with rpcVer version of the sofa rpc framework dynamic ... tartTime time when this instance is started version version of this service instance accepts ... delay ... weight route weight of this instance timeout server side timeout id id of the service, already deprecated pid process id of the service instance uniqueId unique id of the service
type ServiceEvent ¶
type ServiceEvent struct { EventType ServiceEventType Service *Service Instance *Instance Instances map[string]*Instance }
ServiceEvent ...
type ServiceEventType ¶
type ServiceEventType int
ServiceEventType ...
const ( ServiceAdded ServiceEventType = iota ServiceDeleted ServiceInstanceAdded ServiceInstanceDeleted ServiceInstancesReplace )
Enumeration of ServiceEventType
Click to show internal directories.
Click to hide internal directories.