Documentation
¶
Index ¶
- func FetchTicketsDetail(rawIssues []jira.Issue, jobInputs chan<- *TicketFetcherJob) <-chan *jira.Issue
- func InitJiraClient(endpoint string, user string, password string) (*jira.Client, error)
- func ProjectJql(project string) string
- func ScheduleTicket(rawIssues []jira.Issue, inputs chan<- *TicketFetcherJob, ...)
- func SprintJql(sprint string) string
- func StartWorkers(numberOfWorkerToStart int, endPoint string, user string, password string, ...)
- func TicketFetcherWorker(id int, jiraEndpoint string, user string, password string, ...)
- func TicketURL(endpoint string, ticketKey string) string
- func Tickets(endpoint string, user string, password string, jql string) ([]jira.Issue, error)
- func UpdatedJql(delay string) string
- func WorklogURL(endpoint string, ticketKey string, worklogID string) string
- type TicketFetcherJob
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 ¶
InitJiraClient init a JIRA client and check against errors
func ProjectJql ¶
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 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 UpdatedJql ¶
UpdatedJql construct a valid updated date related JIRA Jql condition
Types ¶
type TicketFetcherJob ¶
type TicketFetcherJob struct { Key string Responses chan *jira.Issue }
TicketFetcherJob represent a job to fetch a JIRA ticket
Click to show internal directories.
Click to hide internal directories.