Documentation
¶
Index ¶
- type Cache
- func (c Cache) GetCompletedEntry(repoKey string, index int64) (ItemCacheEntry, bool)
- func (c Cache) GetCompletedReleaseEntry(repoKey string, index int64) (ReleaseCacheEntry, bool)
- func (c Cache) GetGiteaPullReviews(key string) []*gitea.PullReview
- func (c Cache) GetGiteaUser(username string) *gitea.User
- func (c Cache) GetGithubPullRequest(query string) *github.PullRequest
- func (c Cache) GetGithubSearchResults(query string) *github.IssuesSearchResult
- func (c Cache) GetGithubUser(username string) *github.User
- func (c Cache) IsCompleted(repoKey string, index int64) bool
- func (c Cache) IsFailed(repoKey string, index int64) bool
- func (c Cache) IsKnownRepo(repoKey string) bool
- func (c Cache) IsReleaseCompleted(repoKey string, index int64) bool
- func (c Cache) IsReleaseFailed(repoKey string, index int64) bool
- func (c Cache) LoadFromFile(path string) error
- func (c Cache) MarkCompleted(repoKey string, index int64, entry ItemCacheEntry)
- func (c Cache) MarkFailed(repoKey string, index int64)
- func (c Cache) MarkReleaseCompleted(repoKey string, index int64, entry ReleaseCacheEntry)
- func (c Cache) MarkReleaseFailed(repoKey string, index int64)
- func (c Cache) MarkRepoKnown(repoKey string)
- func (c Cache) PurgeRepo(repoKey string)
- func (c Cache) SaveToFile(path string) error
- func (c Cache) SetGiteaPullReviews(key string, reviews []*gitea.PullReview)
- func (c Cache) SetGiteaUser(username string, user gitea.User)
- func (c Cache) SetGithubPullRequest(query string, result github.PullRequest)
- func (c Cache) SetGithubSearchResults(query string, result github.IssuesSearchResult)
- func (c Cache) SetGithubUser(username string, user github.User)
- type CommentCacheEntry
- type ItemCacheEntry
- type ReleaseCacheEntry
- type ReviewCacheEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (Cache) GetCompletedEntry ¶
func (c Cache) GetCompletedEntry(repoKey string, index int64) (ItemCacheEntry, bool)
func (Cache) GetCompletedReleaseEntry ¶
func (c Cache) GetCompletedReleaseEntry(repoKey string, index int64) (ReleaseCacheEntry, bool)
func (Cache) GetGiteaPullReviews ¶
func (c Cache) GetGiteaPullReviews(key string) []*gitea.PullReview
func (Cache) GetGithubPullRequest ¶
func (c Cache) GetGithubPullRequest(query string) *github.PullRequest
func (Cache) GetGithubSearchResults ¶
func (c Cache) GetGithubSearchResults(query string) *github.IssuesSearchResult
func (Cache) IsKnownRepo ¶
func (Cache) IsReleaseCompleted ¶
func (Cache) LoadFromFile ¶
func (Cache) MarkCompleted ¶
func (c Cache) MarkCompleted(repoKey string, index int64, entry ItemCacheEntry)
func (Cache) MarkFailed ¶
func (Cache) MarkReleaseCompleted ¶
func (c Cache) MarkReleaseCompleted(repoKey string, index int64, entry ReleaseCacheEntry)
func (Cache) MarkReleaseFailed ¶
func (Cache) MarkRepoKnown ¶
func (Cache) SaveToFile ¶
func (Cache) SetGiteaPullReviews ¶
func (c Cache) SetGiteaPullReviews(key string, reviews []*gitea.PullReview)
func (Cache) SetGithubPullRequest ¶
func (c Cache) SetGithubPullRequest(query string, result github.PullRequest)
func (Cache) SetGithubSearchResults ¶
func (c Cache) SetGithubSearchResults(query string, result github.IssuesSearchResult)
type CommentCacheEntry ¶
type ItemCacheEntry ¶
type ItemCacheEntry struct {
ContentHash string
GitHubItemID int64
CommentEntries map[int64]CommentCacheEntry
ReviewEntries map[int64]ReviewCacheEntry
}
type ReleaseCacheEntry ¶
type ReviewCacheEntry ¶
Click to show internal directories.
Click to hide internal directories.