Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallationCache ¶
type InstallationCache struct {
// contains filtered or unexported fields
}
InstallationCache provides caching for GitHub App installation IDs
func NewInstallationCache ¶
func NewInstallationCache() *InstallationCache
NewInstallationCache creates a new installation ID cache with 24-hour TTL
func NewInstallationCacheWithTTL ¶
func NewInstallationCacheWithTTL(ttl time.Duration) *InstallationCache
NewInstallationCacheWithTTL creates a new installation ID cache with custom TTL
func (*InstallationCache) ClearCache ¶
func (c *InstallationCache) ClearCache()
ClearCache clears all cached entries
func (*InstallationCache) GetCacheStats ¶
func (c *InstallationCache) GetCacheStats() (repoCount, orgCount int)
GetCacheStats returns cache statistics for debugging
func (*InstallationCache) GetInstallationID ¶
func (c *InstallationCache) GetInstallationID(ctx context.Context, appID int64, pemData []byte, repoFullName, apiBase string) (int64, error)
GetInstallationID retrieves installation ID for a repository with caching
Click to show internal directories.
Click to hide internal directories.