issuemirror

package module
v0.0.0-...-9b3f032 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package issuemirror provides access to mirrored Github issue data, cached on the local filesystem.

For example, see https://github.com/bradfitz/go-issue-mirror.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root string

Root is the root directory of a repo's issue mirror on disk.

func (Root) ForeachIssue

func (r Root) ForeachIssue(fn func(*github.Issue) error) error

ForeachIssue iterates over each cached github issue, in numeric order. It stops at the first error. fn is not run concurrently.

func (Root) ForeachIssueComment

func (r Root) ForeachIssueComment(issueNum int, fn func(*github.IssueComment) error) error

ForeachIssueComment iterates over each cached github issue comment for the provided issue number, in numeric order. It stops at the first error. fn is not run concurrently.

func (Root) Issue

func (r Root) Issue(num int) (*github.Issue, error)

Issue returns the github issue from its cached JSON file on disk.

func (Root) IssueComment

func (r Root) IssueComment(issueNum, commentID int) (*github.IssueComment, error)

IssueComment returns the github issue comment from its cached JSON file on disk.

func (Root) IssueCommentFile

func (r Root) IssueCommentFile(issueNum, commentID int) string

IssueCommentFile returns the path to the provided comment's JSON file metadata.

func (Root) IssueCommentsDir

func (r Root) IssueCommentsDir(num int) string

IssueCommentsDir returns the path to the provided issue number's directory of comments.

func (Root) IssueJSONFile

func (r Root) IssueJSONFile(num int) string

IssueJSONFile returns the path to the provided issue number's JSON file metadata.

func (Root) NumComments

func (r Root) NumComments(issueNum int) (int, error)

NumComments reports the number of comments on disk for the provided issue number.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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