Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthPreRequest ¶
func AuthPreRequest(next echo.HandlerFunc) echo.HandlerFunc
AuthPreRequest is the middleware function.
Types ¶
type ComedianAPI ¶
type ComedianAPI struct {
// contains filtered or unexported fields
}
ComedianAPI struct used to handle slack requests (slash commands)
func New ¶
New creates API instance
func (*ComedianAPI) HandleCallbackEvent ¶
func (api *ComedianAPI) HandleCallbackEvent(event slackevents.EventsAPICallbackEvent) error
HandleCallbackEvent choses bot to deal with event and then handles event
func (*ComedianAPI) HandleEvent ¶
func (api *ComedianAPI) HandleEvent(incomingEvent model.ServiceEvent) error
HandleEvent sends message to Slack Workspace
Click to show internal directories.
Click to hide internal directories.