Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
EventHandler handles discord events and puts them into rabbitMQ
func NewEventHandler ¶
func NewEventHandler( logger *zap.Logger, redisClient *redis.Client, publisher *events.Publisher, checker *whitelist.Checker, state *state.State, deduplicate bool, requestGuildMembersDelay time.Duration, ) *EventHandler
NewEventHandler creates a new EventHandler
func (*EventHandler) IsDuplicate ¶
func (*EventHandler) OnDiscordEvent ¶
func (eh *EventHandler) OnDiscordEvent(session *discordgo.Session, eventItem interface{})
OnDiscordEvent receives discord events
Click to show internal directories.
Click to hide internal directories.