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 (*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
type Event ¶
type Event struct { Token string `json:"token"` Challenge string `json:"challenge"` Type string `json:"type"` }
Event represents slack challenge event
type LoginPayload ¶
LoginPayload represents loginPayload from UI
Click to show internal directories.
Click to hide internal directories.