Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateRunning = iota StateShutdown )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeatInfo ¶
type BeatInfo struct {
Ip string `json:"ip"`
Port uint64 `json:"port"`
Weight float64 `json:"weight"`
ServiceName string `json:"serviceName"`
Cluster string `json:"cluster"`
Metadata map[string]string `json:"metadata"`
Scheduled bool `json:"scheduled"`
Period time.Duration `json:"-"`
State int32 `json:"-"`
}
type Cluster ¶
type Cluster struct {
ServiceName string `json:"serviceName"`
Name string `json:"name"`
HealthyChecker ClusterHealthChecker `json:"healthyChecker"`
DefaultPort uint64 `json:"defaultPort"`
DefaultCheckPort uint64 `json:"defaultCheckPort"`
UseIPPort4Check bool `json:"useIpPort4Check"`
Metadata map[string]string `json:"metadata"`
}
type ClusterHealthChecker ¶
type ClusterHealthChecker struct {
Type string `json:"type"`
}
type ConfigContext ¶
type ConfigItem ¶
type ConfigListenContext ¶
type ConfigPage ¶
type ConfigPage struct {
TotalCount int `param:"totalCount"`
PageNumber int `param:"pageNumber"`
PagesAvailable int `param:"pagesAvailable"`
PageItems []ConfigItem `param:"pageItems"`
}
type ExpressionSelector ¶
type Instance ¶
type Instance struct {
InstanceId string `json:"instanceId"`
Ip string `json:"ip"`
Port uint64 `json:"port"`
Weight float64 `json:"weight"`
Healthy bool `json:"healthy"`
Enable bool `json:"enabled"`
Ephemeral bool `json:"ephemeral"`
ClusterName string `json:"clusterName"`
ServiceName string `json:"serviceName"`
Metadata map[string]string `json:"metadata"`
InstanceHeartBeatInterval int `json:"instanceHeartBeatInterval"`
IpDeleteTimeout int `json:"ipDeleteTimeout"`
InstanceHeartBeatTimeOut int `json:"instanceHeartBeatTimeOut"`
}
type Service ¶
type Service struct {
CacheMillis uint64 `json:"cacheMillis"`
Hosts []Instance `json:"hosts"`
Checksum string `json:"checksum"`
LastRefTime uint64 `json:"lastRefTime"`
Clusters string `json:"clusters"`
Name string `json:"name"`
GroupName string `json:"groupName"`
Valid bool `json:"valid"`
AllIPs bool `json:"allIPs"`
ReachProtectionThreshold bool `json:"reachProtectionThreshold"`
}
type ServiceDetail ¶
type ServiceDetail struct {
Service ServiceInfo `json:"service"`
Clusters []Cluster `json:"clusters"`
}
type ServiceInfo ¶
type ServiceList ¶
type ServiceSelector ¶
type ServiceSelector struct {
Selector string
}
Click to show internal directories.
Click to hide internal directories.