cache

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "2006-01-02"

Variables

View Source
var CustomFieldStartDate = ""

Functions

This section is empty.

Types

type CachedEntry

type CachedEntry struct {
	Project string
	Dates   []string
}

func ListSnapshotDates added in v0.4.0

func ListSnapshotDates(baseDir string, project string) ([]*CachedEntry, error)

type EpicCacher

type EpicCacher struct {
	// contains filtered or unexported fields
}

func NewEpicCacher

func NewEpicCacher(rv *roadmap.RoadmapViewer, dir string) *EpicCacher

func (*EpicCacher) Cache

func (ec *EpicCacher) Cache(date time.Time, projects []string) error

func (*EpicCacher) FromCacheOrdered added in v0.2.0

func (ec *EpicCacher) FromCacheOrdered(date time.Time, projectName string) ([]*EpicLink, error)

FromCacheOrdered returns cached epic link items order by DueDate ASC

type EpicLink struct {
	SnapshotDate time.Time
	StartDate    time.Time
	DueDate      time.Time
	Epic         jira.Issue
	Issues       []jira.Issue
}

func (*EpicLink) InActivePhase added in v0.3.0

func (el *EpicLink) InActivePhase() bool

func (*EpicLink) PastDueDate

func (el *EpicLink) PastDueDate() bool

func (*EpicLink) PreStartDate

func (el *EpicLink) PreStartDate() bool

func (*EpicLink) UnmarshalJSON

func (el *EpicLink) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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