Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registryer ¶
type Registryer interface { PluginName() string Init(context.Context, func() error) error Register(context.Context, *Service) error UnRegister(context.Context, *Service) error Get(context.Context, *Service) ([]*Service, error) SubscribeService(context.Context, *Service) error }
plunin interface
type Service ¶
type Service struct { //consul init ConsulKind api.ServiceKind ConsulID string ConsulName string ConsulTags []string ConsulPort int ConsulAddress string ConsulTaggedAddresses map[string]api.ServiceAddress ConsulEnableTagOverride bool ConsulMeta map[string]string ConsulWeights *api.AgentWeights ConsulCheck *api.AgentServiceCheck ConsulChecks api.AgentServiceChecks ConsulProxy *api.AgentServiceConnectProxyConfig ConsulConnect *api.AgentServiceConnect ConsulNamespace string //nacos init NacosIp string NacosPort uint64 NacosWeight float64 NacosEnable bool NacosHealthy bool NacosMetadata map[string]string NacosClusterName string NacosServiceName string NacosGroupName string NacosEphemeral bool }
Click to show internal directories.
Click to hide internal directories.