func (UserEvent) Type() EventType {
	return EventUser
}
Type returns the EventType of the Event
package members
import "github.com/hashicorp/serf/serf"
type Event interface {
	Type() EventType
}
type MemberEvent struct {
	EventType MemberEventType
	Members   []Member
}
func NewMemberEvent(eventType MemberEventType, members []Member) Event {
	return &MemberEvent{
		EventType: eventType,
		Members:   members,
	}
}
func (MemberEvent) Type() EventType {
	return EventMember
}
type UserEvent struct {
	Name    string
	Payload []byte
}
func NewUserEvent(name string, payload []byte) Event {
	return &UserEvent{
		Name:    name,
		Payload: payload,
	}
}