Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Self = &proto.MicroService{ ServiceName: "REGISTRATOR", Version: "0.1", AppId: "default", Environment: os.Getenv("CSE_ENV"), }
Functions ¶
func FetchService ¶
func FetchService() error
FetchService pull services and instances from source registry register them to target registry
func GetInstances ¶
func GetInstances() map[string][]*proto.MicroServiceInstance
func GetOptions ¶
func SaveInstances ¶
func SaveInstances(s map[string][]*proto.MicroServiceInstance)
SaveInstances merges new instances to old ones, not remove any old instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.