discovery

package
v0.0.0-...-dd20f2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManageDiscovery

func ManageDiscovery(configs RegistrationVariables)

Types

type AppRegistrationBody

type AppRegistrationBody struct {
	Instance InstanceDetails `json:"instance"`
}

type DataCenterInfo

type DataCenterInfo struct {
	Class string `json:"@class"`
	Name  string `json:"name"`
}

type EurekaRegistrationManager

type EurekaRegistrationManager struct {
}

This struct shall be responsible for manager to manage registration with Eureka

func (EurekaRegistrationManager) DeRegisterFromServiceRegistry

func (erm EurekaRegistrationManager) DeRegisterFromServiceRegistry(configs RegistrationVariables)

func (EurekaRegistrationManager) RegisterWithServiceRegistry

func (erm EurekaRegistrationManager) RegisterWithServiceRegistry(eurekaConfigs RegistrationVariables)

func (EurekaRegistrationManager) SendHeartBeat

func (erm EurekaRegistrationManager) SendHeartBeat(eurekaConfigs RegistrationVariables)

func (EurekaRegistrationManager) StoreOtherMSInfo

func (erm EurekaRegistrationManager) StoreOtherMSInfo(configs RegistrationVariables)

type InstanceDetails

type InstanceDetails struct {
	HostName         string         `json:"hostName"`
	App              string         `json:"app"`
	VipAddress       string         `json:"vipAddress"`
	SecureVipAddress string         `json:"secureVipAddress"`
	IpAddr           string         `json:"ipAddr"`
	Status           string         `json:"status"`
	Port             Port           `json:"port"`
	SecurePort       Port           `json:"securePort"`
	HealthCheckUrl   string         `json:"healthCheckUrl"`
	StatusPageUrl    string         `json:"statusPageUrl"`
	HomePageUrl      string         `json:"homePageUrl"`
	DataCenterInfo   DataCenterInfo `json:"dataCenterInfo"`
}

type Port

type Port struct {
	Port    string `json:"$"`
	Enabled string `json:"@enabled"`
}

type RegistrationManager

type RegistrationManager interface {
	Manage(configs RegistrationVariables)
	RegisterWithServiceRegistry()
	SendHeartBeat(configs RegistrationVariables)
	DeRegisterFromServiceRegistry(configs RegistrationVariables)
	StoreOtherMSInfo(config RegistrationVariables)
}

type RegistrationVariables

type RegistrationVariables struct {
	ServiceRegistryURL string
	UserName           string
	Password           string
	AppName            string
	AppPort            string
	UseSSL             bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL