Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct{}
Mapper is the implementation of the `jira.Mapper` interface. Using an interface and a type with methods is only used to enable dependency-injection for the synchronization functions so they can be tested in isolation from the mapping.
func (*Mapper) IssueEventsFromIssue ¶
func (m *Mapper) IssueEventsFromIssue(i *extJira.Issue) []store.IssueEvent
IssueEventsFromIssue generates and returns the `IssueEvent` records corresponding to the passed issue.
The following events are generated:
- `created`: represents the issue creation - `status_changed`: for each status change in the issue's changelogs - `assignee_changed`: idem, for assignee changes - `comment_added`: for each comment in the issue
func (*Mapper) IssueStateFromIssue ¶
func (m *Mapper) IssueStateFromIssue(i *extJira.Issue) store.IssueState
IssueStateFromIssue creates a `store.IssueState` from a Jira issue