store

package
v0.0.0-...-6c593c1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IndexName = "tidb-bug"
View Source
var JiraJQL = "project in (TIDB, ONCALL, TOOL, TIKV)"
View Source
var JiraQuerySize = 500

Functions

func ReSyncAll

func ReSyncAll(jiraClient *jira.Client, esClient *elasticsearch.Client)

func ScheduleSyncTask

func ScheduleSyncTask(jiraClient *jira.Client, esClient *elasticsearch.Client)

Types

type ErrResponse

type ErrResponse struct {
	ErrMsg string `json:"errMsg"`
}

type JiraIssue

type JiraIssue struct {
	Link        string   `json:"link"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Comments    []string `json:"comments"`
}

type SearchItem

type SearchItem struct {
	Link      string   `json:"link"`
	Title     string   `json:"title"`
	Highlight []string `json:"highlight"`
}

type SearchResponse

type SearchResponse struct {
	Total int           `json:"total"`
	Items []*SearchItem `json:"items"`
}

func SearchIssue

func SearchIssue(query string, from, size int, esClient *elasticsearch.Client) (*SearchResponse, error)

Jump to

Keyboard shortcuts

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