diff --git a/docs/developer_guides/chap01_system_overview.md b/docs/developer_guides/chap01_system_overview.md index 24427ded461ab5abb1b26e7a7670db58f549c327..e0e2923a16c3915e408f32051c6134c4b9776dcc 100644 --- a/docs/developer_guides/chap01_system_overview.md +++ b/docs/developer_guides/chap01_system_overview.md @@ -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 } ```