mapping

package
v0.0.0-...-5f61a36 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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