EurekaClient class

Eureka的客户端

step1. 注册服务 step2. 服务续约 step3. 服务下线 step4. 获取服务列表、刷新服务列表

Constructors

EurekaClient({String defaultZone = 'http://localhost:8761/eureka/'})

Properties

apps List<App>
read-only
defaultZone String
中心地址
final
hashCode int
The hash code for this object.
read-onlyinherited
logger Log
read / write
ready bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

down() → dynamic
下线服务
listenApp(StreamController listener) → void
监听
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
up() → dynamic
上线

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance EurekaClient
read-only

Static Methods

createSync(dynamic defaultZone) Future<EurekaClient>