Documentation ¶
Index ¶
- func GetAproveServices(appname string, c context.Context) (services map[string]interface{}, allpath bool)
- func GetCatalogSevice(appname, env string, c context.Context) map[string][]string
- func GetConsulapps(appname, env, service string, hostmode bool, c context.Context) []*api.ServiceEntry
- func Getall(c context.Context) map[string]interface{}
- func IsSkip(appname string, c context.Context) bool
- type EurekaApplication
- type EurekaApplications
- type EurekaInstance
- type Eurekaappinfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAproveServices ¶
func GetCatalogSevice ¶
func GetConsulapps ¶
Types ¶
type EurekaApplication ¶
type EurekaApplication struct {
Application Eurekaappinfo `json:"application"`
}
type EurekaApplications ¶
type EurekaApplications struct { Applications struct { Versions__delta string `json:"versions__delta"` Apps__hashcode string `json:"apps__hashcode"` Application []Eurekaappinfo `json:"application"` } `json:"applications"` }
type EurekaInstance ¶
type EurekaInstance struct { InstanceId string `json:"instanceId"` HostName string `json:"hostName"` App string `json:"app"` Status string `json:"status"` Overriddenstatus string `json:"overriddenstatus"` IpAddr string `json:"ipAddr"` Port struct { Realport int `json:"$"` Enabled string `json:"@enabled"` } `json:"port"` SecurePort struct { Realport int `json:"$"` Enabled string `json:"@enabled"` } `json:"securePort"` CountryId int `json:"countryId"` DataCenterInfo struct { Class string `json:"@class"` Name string `json:"name"` } `json:"dataCenterInfo"` LeaseInfo struct { RenewalIntervalInSecs int `json:"renewalIntervalInSecs"` DurationInSecs int `json:"durationInSecs"` RegistrationTimestamp int64 `json:"registrationTimestamp"` LastRenewalTimestamp int64 `json:"lastRenewalTimestamp"` EvictionTimestamp int64 `json:"evictionTimestamp"` ServiceUpTimestamp int64 `json:"serviceUpTimestamp"` } `json:"leaseInfo"` Metadata map[string]string `json:"metadata"` HomePageUrl string `json:"homePageUrl"` StatusPageUrl string `json:"statusPageUrl"` HealthCheckUrl string `json:"healthCheckUrl"` VipAddress string `json:"vipAddress"` SecureVipAddress string `json:"secureVipAddress"` IsCoordinatingDiscoveryServer string `json:"isCoordinatingDiscoveryServer"` LastUpdatedTimestamp string `json:"lastUpdatedTimestamp"` LastDirtyTimestamp string `json:"lastDirtyTimestamp"` ActionType string `json:"actionType"` }
func (EurekaInstance) String ¶
func (euinst EurekaInstance) String() string
type Eurekaappinfo ¶
type Eurekaappinfo struct { Name string `json:"name"` Instance []EurekaInstance `json:"instance"` }
Click to show internal directories.
Click to hide internal directories.