Documentation
¶
Index ¶
- func NewForgeCache(backend types.GitForge, logger *slog.Logger) types.GitForgeCacher
- type Cache
- func (c *Cache) FetchGroupContent(ctx context.Context, source types.RepositoryGroupSource) (types.RepositoryGroupContent, error)
- func (c *Cache) FetchRootGroupContent(ctx context.Context) (map[string]types.RepositoryGroupSource, error)
- func (c *Cache) InvalidateCache(source types.RepositoryGroupSource)
- type CachedContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForgeCache ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) FetchGroupContent ¶
func (c *Cache) FetchGroupContent(ctx context.Context, source types.RepositoryGroupSource) (types.RepositoryGroupContent, error)
func (*Cache) FetchRootGroupContent ¶
func (*Cache) InvalidateCache ¶
func (c *Cache) InvalidateCache(source types.RepositoryGroupSource)
type CachedContent ¶
type CachedContent struct {
GetContent func() (types.RepositoryGroupContent, error)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.