func (m *Message) ExceededTrialLimit(limit int) bool {
	return limit > 0 && m.Trial > limit
}
ExceededTrialLimit returns true if Trial is greater than limit, given limit is positive.
package groupsync
type Message struct {
	GroupID  string `json:"group_id"`
	MemberID string `json:"member_id"`
	Trial    int    `json:"trial"`
}
func (m *Message) Retry() {
	m.Trial++
}
func (m *Message) Fields() map[string]interface{} {
	return map[string]interface{}{
		"groupId":  m.GroupID,
		"memberId": m.MemberID,
		"trial":    m.Trial,
	}
}