changeset 36:c95f50810bcd

Add OnCommit to EventHandler
author Lewin Bormann <lbo@spheniscida.de>
date Wed, 24 Jul 2019 15:11:11 +0200
parents b0c0254f4368
children e8ed644c2122
files types.go
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/types.go	Wed Jul 24 15:10:59 2019 +0200
+++ b/types.go	Wed Jul 24 15:11:11 2019 +0200
@@ -53,6 +53,7 @@
 type EventHandler interface {
 	OnBecomeMaster(*Participant)
 	OnLoseMaster(*Participant)
+	OnCommit(*Participant, SequenceNumber, []Change)
 }
 
 // You can embed this into your custom event handler type so you don't have to implement all events.