Documentation ¶
Index ¶
- Constants
- Variables
- func EventColumnsPlaceholders() string
- func EventColumnsString() string
- func IssueColumnsPlaceholders() string
- func IssueColumnsString() string
- type Cache
- func (cache Cache) GetAllEvents() ([]Event, error)
- func (cache Cache) GetAllIssues() (*[]Issue, error)
- func (cache Cache) GetIssue(key string) (*Issue, error)
- func (cache Cache) GetIssueEventsForField(key, field string) ([]Event, error)
- func (cache Cache) GetIssuesCreatedInDateRange(from, to time.Time) (*[]Issue, error)
- func (cache Cache) QueryForEvents(qfmt string, a ...any) ([]Event, error)
- func (cache Cache) QueryForIssues(qfmt string, a ...any) (*[]Issue, error)
- func (cache Cache) UpsertEventsFromIssue(issue *models.IssueScheme) (*int, error)
- func (cache Cache) UpsertIssueFromJIRA(issue *models.IssueScheme) error
- type Event
- type Issue
Constants ¶
View Source
const CreateEventsTableSQL = `` /* 247-byte string literal not displayed */
View Source
const CreateIssuesTableSQL = `` /* 403-byte string literal not displayed */
Variables ¶
View Source
var EventColumns = []string{"key", "author", "date", "field", "[from]", "[to]"}
View Source
var IssueColumns = []string{"key", "url", "type", "status", "resolution", "summary", "labels", "creator", "created", "updated", "daysopen"}
Functions ¶
func EventColumnsPlaceholders ¶
func EventColumnsPlaceholders() string
func EventColumnsString ¶
func EventColumnsString() string
func IssueColumnsPlaceholders ¶
func IssueColumnsPlaceholders() string
func IssueColumnsString ¶
func IssueColumnsString() string
Types ¶
type Cache ¶
func (Cache) GetAllEvents ¶
func (Cache) GetAllIssues ¶
func (Cache) GetIssueEventsForField ¶
func (Cache) GetIssuesCreatedInDateRange ¶
func (Cache) QueryForEvents ¶
func (Cache) QueryForIssues ¶
func (Cache) UpsertEventsFromIssue ¶
func (cache Cache) UpsertEventsFromIssue(issue *models.IssueScheme) (*int, error)
func (Cache) UpsertIssueFromJIRA ¶
func (cache Cache) UpsertIssueFromJIRA(issue *models.IssueScheme) error
type Issue ¶
type Issue struct { Key string URL string Type string Status string // Sprint string // do we bother with this? it is an internal process thing Resolution string Summery string Labels []string Creator string Created time.Time Updated time.Time // calculated DaysOpen sql.NullFloat64 Closed time.Time // todo, need to parse events to get this }
Click to show internal directories.
Click to hide internal directories.