From dfbd00f132ecceb346cb7e90324d0469e3ba50f4 Mon Sep 17 00:00:00 2001 From: 3AceShowHand Date: Thu, 24 Feb 2022 17:38:43 +0800 Subject: [PATCH] Add comments. --- pkg/util/identity.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/util/identity.go b/pkg/util/identity.go index 5b0abe38a80..b9fa894e0cd 100644 --- a/pkg/util/identity.go +++ b/pkg/util/identity.go @@ -17,12 +17,19 @@ package util type Role int const ( + // RoleOwner is the owner of the cluster. RoleOwner Role = iota + // RoleProcessor is the processor of the cluster. RoleProcessor + // RoleClient is the client. RoleClient + // RoleRedoLogApplier is the redo log applier. RoleRedoLogApplier + // RoleKafkaConsumer is the kafka consumer. RoleKafkaConsumer + // RoleTester for test. RoleTester + // RoleUnknown is the unknown role. RoleUnknown )