init.go 312 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5
package eureka

import (
	"github.com/eolinker/goku/goku-service/discovery"
)
Y
Your Name 已提交
6

E
eoLinker API Management 已提交
7
const DriverName = "eureka"
Y
Your Name 已提交
8 9
const EurekaStatusUp = "UP"

E
eoLinker API Management 已提交
10 11
func init() {

Y
Your Name 已提交
12
	discovery.RegisteredDiscovery(DriverName, discovery.NewDriver(Create))
E
eoLinker API Management 已提交
13 14 15 16

}
func Create(config string) discovery.Discovery {
	return NewEurekaDiscovery(config)
Y
Your Name 已提交
17
}