Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var (
ErrDiscoveryDown = errors.New("discovery down")
)
Functions ¶
Types ¶
type IAppAgent ¶ added in v0.12.5
type IAppAgent interface { Agent() IApp // contains filtered or unexported methods }
type IAppContainer ¶
type IAppContainer interface { INodes Set(id string, info []NodeInfo) (app IAppAgent) Reset(info map[string][]NodeInfo) GetApp(id string) (IAppAgent, bool) Keys() []string }
func NewAppContainer ¶ added in v0.12.5
func NewAppContainer() IAppContainer
type IDiscovery ¶
IDiscovery 服务发现接口
type IHealthChecker ¶
IHealthChecker 健康检查接口
type INode ¶
type INode interface { IP() string ID() string Addr() string Port() int Status() NodeStatus Up() Down() Leave() }
type Node ¶ added in v0.12.5
type Node struct { INode // contains filtered or unexported fields }
func (*Node) GetAttrByName ¶ added in v0.12.5
Click to show internal directories.
Click to hide internal directories.