handler

package
v0.0.0-...-a536ae1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TICK = "`"

Variables

This section is empty.

Functions

This section is empty.

Types

type EventAction

type EventAction struct {
	Event  *slackevents.MessageEvent
	Action string
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(client *slack.Client, admins []string, dbConnectionInfo *data.DbConnectionInfo) *Handler

func (*Handler) CallbackEvent

func (h *Handler) CallbackEvent(event slackevents.EventsAPIEvent) error

func (*Handler) ConnectDB

func (h *Handler) ConnectDB() (*sql.DB, error)

func (*Handler) GetIncident

func (h *Handler) GetIncident(incident_id string) *data.Incident

func (*Handler) GetIncidentId

func (h *Handler) GetIncidentId(chat_room string, matches []string) string

func (*Handler) GetUserName

func (h *Handler) GetUserName(user_id string) string

func (*Handler) InIncidentChatroom

func (h *Handler) InIncidentChatroom(chat_room string) string

func (*Handler) LogEvent

func (h *Handler) LogEvent(incident_id string, user string, action string, description string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL