jirawebhook

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

func Start

func Start(config *model.Config, wg *sync.WaitGroup,
	outChan chan *model.ChatMessage, done chan struct{})

Types

type JiraChangeItem

type JiraChangeItem struct {
	ToString   string `json:"toString"`
	To         string `json:"to"`
	FromString string `json:"fromString"`
	From       string `json:"from"`
	FieldType  string `json:"fieldtype"`
	Field      string `json:"field"`
}

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)

Jump to

Keyboard shortcuts

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