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