Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeregisterWithEureka ¶
DeregisterWithEureka deregisters the Eureka instance.
func RegisterWithEureka ¶
RegisterWithEureka registers the instance with Eureka.
Types ¶
type Config ¶
type Config struct { EurekaURL string App string Instance InstanceData AuthHeader string // Custom authorization header }
Config contains the configuration for registering with Eureka.
type DataCenterInfoData ¶
DataCenterInfoData contains the data center data.
type InstanceData ¶
type InstanceData struct { InstanceID string `json:"instanceId"` HostName string `json:"hostName"` App string `json:"app"` IPAddr string `json:"ipAddr"` Status Status `json:"status"` Port PortData `json:"port"` SecurePort PortData `json:"securePort"` HomePageURL string `json:"homePageUrl"` StatusPageURL string `json:"statusPageUrl"` HealthCheckURL string `json:"healthCheckUrl"` VIPAddress string `json:"vipAddress"` SecureVIPAddress string `json:"secureVipAddress"` CountryID int `json:"countryId"` DataCenterInfo DataCenterInfoData `json:"dataCenterInfo"` }
InstanceData contains the data for the instance.
Click to show internal directories.
Click to hide internal directories.