cache

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause, MIT Imports: 16 Imported by: 0

Documentation

Overview

Package cache persists provider-neutral GitHub domain models. Do not couple this package to `internal/githubcli` transport types or command behavior.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationDoneStorePath

func NotificationDoneStorePath(cachePath string) string

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 Open

func Open(path string) (*Store, error)

func (*Store) Clear

func (store *Store) Clear() error

func (*Store) Close

func (store *Store) Close() error

func (*Store) InvalidatePullRequest

func (store *Store) InvalidatePullRequest(repository string, number int) error

func (*Store) Notifications

func (store *Store) Notifications() ([]githubcli.Notification, bool, error)

func (*Store) PullRequestDetail

func (store *Store) PullRequestDetail(repository string, number int) (CachedPullRequestDetail, bool, error)

func (*Store) PullRequestDiff

func (store *Store) PullRequestDiff(repository string, number int) (CachedPullRequestDiff, bool, error)

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

Jump to

Keyboard shortcuts

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