Discover Packages
gitlab.com/matthieudolci/kudos
app
package
Version:
v0.0.0-...-1616de3
Opens a new window with list of versions in this module.
Published: Oct 27, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DB variable contains the connection, and I keep it always open until the program exists
InitDb checks if those mandatory environment variables are set, and opens the connection to the database
Run is the primary service to generate and kick off the slackbot listener
This portion receives all incoming Real Time Messages notices from the workspace
as registered by the API token
type Kudos struct {
UUID string `db:"kudo_uuid"`
FromName string `db:"from_name"`
ToName string `db:"to_name"`
Date string `db:"date"`
}
Kudos is the db structure of a kudo
Slack is the primary struct for our slackbot
New returns a new instance of the Slack struct, primary for our slackbot
Source Files
¶
Click to show internal directories.
Click to hide internal directories.