summaryrefslogtreecommitdiffstats
path: root/common/types/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/types/types.go')
-rw-r--r--common/types/types.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/types/types.go b/common/types/types.go
index f03031439..04a27766e 100644
--- a/common/types/types.go
+++ b/common/types/types.go
@@ -21,6 +21,12 @@ import (
"github.com/spf13/cast"
)
+// RLocker represents the read locks in sync.RWMutex.
+type RLocker interface {
+ RLock()
+ RUnlock()
+}
+
// KeyValueStr is a string tuple.
type KeyValueStr struct {
Key string