reg

package
v0.0.0-...-ccb0ade Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

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 GetOptions(address string) (client.Options, error)

func Heartbeat

func Heartbeat() error

func SaveInstances

func SaveInstances(s map[string][]*proto.MicroServiceInstance)

SaveInstances merges new instances to old ones, not remove any old instance

func Start

func Start() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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