Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportList ¶
ImportList returns title -> Todo map for provider issues list
Types ¶
type GitHubIssue ¶
type GitHubIssue struct { Title string `json:"title"` Body string `json:"body"` ID int `json:"number"` }
GitHubIssue type
type GitHubProvider ¶
type GitHubProvider struct {
URL string
}
GitHubProvider for importing issues from GitHub -----------------------------------------------
func (GitHubProvider) Name ¶
func (gh GitHubProvider) Name() string
Name returns a friendly GitHub name
func (GitHubProvider) Search ¶
func (gh GitHubProvider) Search(term string) []Todo
Search for issues on GitHub
type GitHubResponse ¶
type GitHubResponse struct { Total int `json:"total_count"` Items []GitHubIssue `json:"items"` }
GitHubResponse type
type Provider ¶
type Provider interface { // Name returns a friendly <Provider> name Name() string // Search for issues on <Provider> Search(term string) []Todo }
Provider interface ------------------
type TodoCollection ¶
type TodoCollection struct {
Todos []Todo
}
TodoCollection represents an array of Todos
Click to show internal directories.
Click to hide internal directories.