From 30ecd3164fabb328671d4744effea9751b9d0657 Mon Sep 17 00:00:00 2001 From: dragondriver Date: Fri, 8 Oct 2021 23:56:13 +0800 Subject: [PATCH] [skip ci] Add desc comments for GetComponentStatesInterface (#9506) Signed-off-by: dragondriver --- cmd/roles/healthz_handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/roles/healthz_handler.go b/cmd/roles/healthz_handler.go index d025e5c05d..0ba4b1ee4c 100644 --- a/cmd/roles/healthz_handler.go +++ b/cmd/roles/healthz_handler.go @@ -46,7 +46,9 @@ func healthyHandler(w http.ResponseWriter, r *http.Request) { } } +// GetComponentStatesInterface defines the interface that get states from component. type GetComponentStatesInterface interface { + // GetComponentStates returns the states of component. GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) }