fetcher

package
v0.0.0-...-13b7063 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTicketsDetail

func FetchTicketsDetail(rawIssues []jira.Issue, jobInputs chan<- *TicketFetcherJob) <-chan *jira.Issue

FetchTicketsDetail fetch all informations linked to a ticket like worklogs, timetracking, ...

func InitJiraClient

func InitJiraClient(endpoint string, user string, password string) (*jira.Client, error)

InitJiraClient init a JIRA client and check against errors

func ProjectJql

func ProjectJql(project string) string

ProjectJql construct a valid project related JIRA Jql condition

func ScheduleTicket

func ScheduleTicket(rawIssues []jira.Issue, inputs chan<- *TicketFetcherJob, issues chan *jira.Issue)

ScheduleTicket schedules our issues for fetching

func SprintJql

func SprintJql(sprint string) string

SprintJql construct a valid sprint related JIRA Jql condition

func StartWorkers

func StartWorkers(numberOfWorkerToStart int, endPoint string, user string, password string, inputs <-chan *TicketFetcherJob)

StartWorkers will start numberOfWorkerToStart TicketFetcherWorker

func TicketFetcherWorker

func TicketFetcherWorker(id int, jiraEndpoint string, user string, password string, inputs <-chan *TicketFetcherJob)

TicketFetcherWorker fetch a complete JIRA ticket using its key and a decicated JIRA client. It will send the result to the issues channel

func TicketURL

func TicketURL(endpoint string, ticketKey string) string

TicketURL construct a valid JIRA cloud ticket browsing url

func Tickets

func Tickets(endpoint string, user string, password string, jql string) ([]jira.Issue, error)

Tickets fetchs tickets according to defined jql

func UpdatedJql

func UpdatedJql(delay string) string

UpdatedJql construct a valid updated date related JIRA Jql condition

func WorklogURL

func WorklogURL(endpoint string, ticketKey string, worklogID string) string

WorklogURL construct a valid JIRA cloud permanent worklog browsing url

Types

type TicketFetcherJob

type TicketFetcherJob struct {
	Key       string
	Responses chan *jira.Issue
}

TicketFetcherJob represent a job to fetch a JIRA ticket

Jump to

Keyboard shortcuts

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