aboutsummaryrefslogtreecommitdiffhomepage
path: root/identity
diff options
context:
space:
mode:
Diffstat (limited to 'identity')
-rw-r--r--identity/identity.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/identity/identity.go b/identity/identity.go
index f924f335c..d106eb1fc 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -241,6 +241,11 @@ type IdentityProvider interface {
GetIdentity() Identity
}
+// SignalRebuilder is an optional interface for types that can signal a rebuild.
+type SignalRebuilder interface {
+ SignalRebuild(ids ...Identity)
+}
+
// IncrementByOne implements Incrementer adding 1 every time Incr is called.
type IncrementByOne struct {
counter uint64