Documentation
¶
Index ¶
- type Platform
- func (p *Platform) BaseURL() string
- func (p *Platform) CLICommand() string
- func (p *Platform) ClearEnrichmentCache()
- func (p *Platform) ClearRepoLabelCache(repoNameWithOwner string)
- func (p *Platform) ClearRepoUserCache(repoNameWithOwner string)
- func (p *Platform) CurrentLoginName() (string, error)
- func (p *Platform) ExecCommand(name string, args ...string) *exec.Cmd
- func (p *Platform) FetchCommentAuthor(apiUrl string) (string, error)
- func (p *Platform) FetchIssue(url string) (data.IssueData, error)
- func (p *Platform) FetchIssues(query string, limit int, pageInfo *data.PageInfo) (data.IssuesResponse, error)
- func (p *Platform) FetchLatestVersion() (data.VersionResponse, error)
- func (p *Platform) FetchNotificationByThreadId(threadId string) (*data.NotificationData, error)
- func (p *Platform) FetchNotifications(limit int, repoFilters []string, readState data.NotificationReadState, ...) (data.NotificationsResponse, error)
- func (p *Platform) FetchPullRequest(url string) (data.EnrichedPullRequestData, error)
- func (p *Platform) FetchPullRequests(query string, limit int, pageInfo *data.PageInfo) (data.PullRequestsResponse, error)
- func (p *Platform) FetchRecentWorkflowRun(repo string, notificationUpdatedAt time.Time, title string) (string, error)
- func (p *Platform) FetchRepoLabels(repoNameWithOwner string) ([]data.Label, error)
- func (p *Platform) FetchRepoUsers(owner, repoName string) ([]data.User, error)
- func (p *Platform) FetchSponsors() (data.SponsorsResponse, error)
- func (p *Platform) GetAuthorRoleIcon(role string, theme theme.Theme) string
- func (p *Platform) GetBookmarkStore() *data.NotificationIDStore
- func (p *Platform) GetDoneStore() *data.DoneStore
- func (p *Platform) MarkAllNotificationsRead() error
- func (p *Platform) MarkNotificationDone(threadId string) error
- func (p *Platform) MarkNotificationRead(threadId string) error
- func (p *Platform) UnsubscribeFromThread(threadId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
func NewPlatform() *Platform
func (*Platform) CLICommand ¶
func (*Platform) ClearEnrichmentCache ¶
func (p *Platform) ClearEnrichmentCache()
func (*Platform) ClearRepoLabelCache ¶
func (*Platform) ClearRepoUserCache ¶
func (*Platform) CurrentLoginName ¶
func (*Platform) ExecCommand ¶
func (*Platform) FetchCommentAuthor ¶
func (*Platform) FetchIssues ¶
func (*Platform) FetchLatestVersion ¶
func (p *Platform) FetchLatestVersion() (data.VersionResponse, error)
func (*Platform) FetchNotificationByThreadId ¶
func (p *Platform) FetchNotificationByThreadId(threadId string) (*data.NotificationData, error)
func (*Platform) FetchNotifications ¶
func (p *Platform) FetchNotifications(limit int, repoFilters []string, readState data.NotificationReadState, pageInfo *data.PageInfo) (data.NotificationsResponse, error)
func (*Platform) FetchPullRequest ¶
func (p *Platform) FetchPullRequest(url string) (data.EnrichedPullRequestData, error)
func (*Platform) FetchPullRequests ¶
func (*Platform) FetchRecentWorkflowRun ¶
func (*Platform) FetchRepoLabels ¶
func (*Platform) FetchRepoUsers ¶
func (*Platform) FetchSponsors ¶
func (p *Platform) FetchSponsors() (data.SponsorsResponse, error)
func (*Platform) GetAuthorRoleIcon ¶
func (*Platform) GetBookmarkStore ¶
func (p *Platform) GetBookmarkStore() *data.NotificationIDStore
func (*Platform) GetDoneStore ¶
func (*Platform) MarkAllNotificationsRead ¶
func (*Platform) MarkNotificationDone ¶
func (*Platform) MarkNotificationRead ¶
func (*Platform) UnsubscribeFromThread ¶
Click to show internal directories.
Click to hide internal directories.