Documentation
¶
Index ¶
Constants ¶
View Source
const ( APP = "Jira Reindex Runner" VER = "0.1.0" DESC = "Tool for periodical running Jira re-index process" )
Basic application info
View Source
const ( OPT_CONFIG = "c:config" OPT_NO_COLOR = "nc:no-color" OPT_HELP = "h:help" OPT_VER = "v:version" OPT_VERB_VER = "vv:verbose-version" OPT_COMPLETION = "completion" OPT_GENERATE_MAN = "generate-man" )
Options
View Source
const ( MAIN_ENABLED = "main:enabled" JIRA_URL = "jira:url" JIRA_USERNAME = "jira:username" JIRA_PASSWORD = "jira:password" JIRA_REINDEX_TYPE = "jira:reindex-type" LOG_DIR = "log:dir" LOG_FILE = "log:file" LOG_PERMS = "log:perms" LOG_LEVEL = "log:level" )
Configuration file properties
View Source
const ( JIRA_ENDPOINT_CHECK = "/rest/scriptrunner/latest/custom/reindexRequired" JIRA_ENDPOINT_REINDEX = "/rest/api/2/reindex" JIRA_ENDPOINT_PROGRESS = "/rest/api/2/reindex/progress" )
View Source
const JIRA_DATE_TIME_FORMAT = "2006-01-02T15:04:05Z0700"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReindexProgressInfo ¶
type ReindexRequestInfo ¶
type ReindexRequestInfo struct { IsRequired bool `json:"is_required"` User string `json:"user"` Date string `json:"date"` }
func (*ReindexRequestInfo) GetDate ¶
func (i *ReindexRequestInfo) GetDate() time.Time
Click to show internal directories.
Click to hide internal directories.