Documentation ¶
Index ¶
- Constants
- type AttachmentMeta
- type Data
- func (d *Data) Close()
- func (d *Data) GetAttachment(id string) (string, string, []byte, error)
- func (d *Data) GetTicket(id string) (interface{}, error)
- func (d *Data) LoadIndex(fh io.Reader) error
- func (d *Data) LoadMerged(fh io.Reader) error
- func (d *Data) LoadRTGitHubMap(fh io.Reader) error
- func (d *Data) RTGitHubCSV() (io.ReadCloser, error)
- type IndexTicket
- type TicketSource
Constants ¶
View Source
const RTGitHubCSV = "rtgithub.csv"
RTGitHubCSV returns the filename for the mapping of tickets from RT to GitHub
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentMeta ¶
type Data ¶
type Data struct { Index bleve.Index Merged map[string]string // contains filtered or unexported fields }
TODO: fixme data.Data stutters
func (*Data) GetAttachment ¶
GetAttachment returns the filename, content-type, and bytes of an attachment.
func (*Data) LoadRTGitHubMap ¶
LoadRTGitHubMap loads the mapping of old ids to the new ones.
func (*Data) RTGitHubCSV ¶
func (d *Data) RTGitHubCSV() (io.ReadCloser, error)
RTGitHubCSV returns a io.ReadCloser pointing to the rtgithub.csv file
type IndexTicket ¶
type TicketSource ¶
type TicketSource interface { GetTicket(id string) (interface{}, error) GetJSON(id string) (io.ReadCloser, error) GetFile(id string) (io.ReadCloser, error) }
TicketSource describes the interface of the ticket reader classes we use.
Click to show internal directories.
Click to hide internal directories.