Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Channels map[string]string
Channels holds all slack channels mapped from name -> id and vice vers from id -> name
View Source
var Projects map[string]string
Projects is a map of all projects which should be accessible by boggy via Slack This doesn't handle the permissions which need to be granted via JIRA
View Source
var Users map[string]string
Users holds all slack users mapped from name -> id and vice versa from id -> name
Functions ¶
func GetJiraClient ¶
func GetJiraClient(cfg config.JiraConfig) (*jira.Client, error)
GetJiraClient establishes a connection to the JIRA server
Types ¶
type Slack ¶
Slack is a wrapper for the RTM connection
func GetSlackClient ¶
func GetSlackClient(cfg config.SlackConfig) *Slack
GetSlackClient establishes a RTM connection to the slack server
type SlackClient ¶
type SlackClient interface { Respond(event *slack.MessageEvent, text string, options ...slack.MsgOption) string TrimMessage(msg string, trim string) string AuthTest() (response *slack.AuthTestResponse, error error) }
SlackClient is the main slack interface
Click to show internal directories.
Click to hide internal directories.