aboutsummaryrefslogblamecommitdiffstats
path: root/core/types/membership-event.go
blob: 8d05039d70eaf78310f8c72a1ba3c968f3623a92 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                   
package types

// MembershipActionType specifies the action of a membership event.
type MembershipActionType int

// Event enums.
const (
    MembershipActionAdd MembershipActionType = iota
    MembershipActionDelete
)

// MembershipEvent specifies the event of membership changes.
type MembershipEvent struct {
    Epoch  int
    Action MembershipActionType
}