Documentation ¶
Index ¶
- func IssueCreatedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
- func IssueDeletedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
- func IssueUpdatedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
- func Start(config *model.Config, wg *sync.WaitGroup, outChan chan *model.ChatMessage, ...)
- type JiraChangeItem
- type JiraChangelog
- type JiraWebhook
- type WebhookFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IssueCreatedFormatter ¶
func IssueCreatedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
func IssueDeletedFormatter ¶
func IssueDeletedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
func IssueUpdatedFormatter ¶
func IssueUpdatedFormatter(data *JiraWebhook) (*model.ChatMessage, error)
Types ¶
type JiraChangeItem ¶
type JiraChangelog ¶
type JiraChangelog struct { Items []JiraChangeItem `json:"items"` Id string `json:"id"` }
type JiraWebhook ¶
type JiraWebhook struct { Timestamp uint64 `json:"timestamp"` Event string `json:"webhookEvent"` User *jira.Assignee `json:"user"` Issue *jira.Issue `json:"issue"` Changelog *JiraChangelog `json:"changelog"` Comment *jira.Comment `json:"comment"` JiraURL string `json:"-"` }
type WebhookFormatter ¶
type WebhookFormatter func(*JiraWebhook) (*model.ChatMessage, error)
Click to show internal directories.
Click to hide internal directories.