Documentation
¶
Overview ¶
Package cache persists provider-neutral GitHub domain models. Do not couple this package to `internal/githubcli` transport types or command behavior.
Index ¶
- func NotificationDoneStorePath(cachePath string) string
- type CachedPullRequestDetail
- type CachedPullRequestDiff
- type NotificationDoneStore
- type Store
- func (store *Store) Clear() error
- func (store *Store) Close() error
- func (store *Store) InvalidatePullRequest(repository string, number int) error
- func (store *Store) Notifications() ([]githubcli.Notification, bool, error)
- func (store *Store) PullRequestDetail(repository string, number int) (CachedPullRequestDetail, bool, error)
- func (store *Store) PullRequestDiff(repository string, number int) (CachedPullRequestDiff, bool, error)
- func (store *Store) PullRequests(search appconfig.PullRequestSearch) ([]githubcli.PullRequest, bool, error)
- func (store *Store) SaveNotifications(notifications []githubcli.Notification) error
- func (store *Store) SavePullRequestDetail(summary githubcli.PullRequest, detail githubcli.PullRequestDetail) error
- func (store *Store) SavePullRequestDiff(summary githubcli.PullRequest, diff githubcli.PullRequestDiff) error
- func (store *Store) SavePullRequests(search appconfig.PullRequestSearch, pullRequests []githubcli.PullRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedPullRequestDetail ¶
type CachedPullRequestDetail struct {
Detail githubcli.PullRequestDetail
SourceUpdatedAt string
}
type CachedPullRequestDiff ¶
type CachedPullRequestDiff struct {
Diff githubcli.PullRequestDiff
SourceUpdatedAt string
}
type NotificationDoneStore ¶
type NotificationDoneStore struct {
// contains filtered or unexported fields
}
func OpenNotificationDoneStore ¶
func OpenNotificationDoneStore(path string) (*NotificationDoneStore, error)
func (*NotificationDoneStore) FilterNotifications ¶
func (store *NotificationDoneStore) FilterNotifications(notifications []githubcli.Notification) []githubcli.Notification
func (*NotificationDoneStore) HideNotifications ¶
func (store *NotificationDoneStore) HideNotifications(notifications []githubcli.Notification) error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) InvalidatePullRequest ¶
func (*Store) Notifications ¶
func (store *Store) Notifications() ([]githubcli.Notification, bool, error)
func (*Store) PullRequestDetail ¶
func (*Store) PullRequestDiff ¶
func (*Store) PullRequests ¶
func (store *Store) PullRequests(search appconfig.PullRequestSearch) ([]githubcli.PullRequest, bool, error)
func (*Store) SaveNotifications ¶
func (store *Store) SaveNotifications(notifications []githubcli.Notification) error
func (*Store) SavePullRequestDetail ¶
func (store *Store) SavePullRequestDetail(summary githubcli.PullRequest, detail githubcli.PullRequestDetail) error
func (*Store) SavePullRequestDiff ¶
func (store *Store) SavePullRequestDiff(summary githubcli.PullRequest, diff githubcli.PullRequestDiff) error
func (*Store) SavePullRequests ¶
func (store *Store) SavePullRequests(search appconfig.PullRequestSearch, pullRequests []githubcli.PullRequest) error
Click to show internal directories.
Click to hide internal directories.