Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.20250724.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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