提交 4e5df50a 编写于 作者: G GuoRentong 提交者: yefu.chen

Update doc:Component interface

Signed-off-by: NGuoRentong <rentong.guo@zilliz.com>
上级 7e8162a7
......@@ -81,7 +81,7 @@ type Component interface {
Init()
Start()
Stop()
GetServiceStates() (ServiceStates, error)
GetComponentStates() (ComponentStates, error)
GetTimeTickChannel() (string, error)
GetStatisticsChannel() (string, error)
}
......@@ -100,17 +100,16 @@ const (
ABNORMAL StateCode = 2
)
type NodeStates struct {
type ComponentInfo struct {
NodeID UniqueID
Role string
StateCode StateCode
ExtraInfo KeyValuePair
}
type ServiceStates struct {
StateCode StateCode
NodeStates []NodeStates
ExtraInfo KeyValuePair
type ComponentStates struct {
States ComponentInfo
SubcomponentStates []ComponentInfo
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册