mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Update doc:Component interface
Signed-off-by: GuoRentong <rentong.guo@zilliz.com>
This commit is contained in:
parent
7e8162a79e
commit
4e5df50a39
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user