Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RealSlackHandler ¶
type RealSlackHandler struct {
NotificationChannel string
ReactionThreshold int
Database database.Database
SlackClient SlackClient
SlackVerificationToken string
}
func (*RealSlackHandler) HandleEvent ¶
func (sh *RealSlackHandler) HandleEvent(body []byte) (SlackHandlerResponse, error)
func (*RealSlackHandler) SendMessage ¶
func (sh *RealSlackHandler) SendMessage(channel string, msg string) error
type SlackChannelLeaver ¶
type SlackClient ¶
type SlackHandler ¶
type SlackHandler interface {
HandleEvent([]byte) (SlackHandlerResponse, error)
SendMessage(string, string) error
}
func NewRealSlackHandler ¶
func NewRealSlackHandler(db database.Database, slackClient SlackClient, notificationChannel string, reacitonThreshold int, verificationToken string) SlackHandler
Click to show internal directories.
Click to hide internal directories.