Documentation
¶
Index ¶
- type Cache
- func (c *Cache) CleanupOldEntries(logId string)
- func (c *Cache) Close() error
- func (c *Cache) Get(key []byte, entry *database.Entry[CachedResponses]) error
- func (c *Cache) GetStatistics(ctx context.Context, logId string) (CacheStatistics, error)
- func (c *Cache) List(ctx context.Context, hostname, logId string) (CacheList, error)
- func (c *Cache) ManageCache()
- func (c *Cache) New(key []byte, value CachedResponses) error
- func (c *Cache) Open(hash string, logger *zerolog.Logger) (io.ReadCloser, error)
- func (c *Cache) Remove(key []byte, logger *zerolog.Logger) error
- func (c *Cache) Save(key []byte, entry *database.Entry[CachedResponses]) error
- func (c *Cache) SetupIngestion(src io.ReadCloser, onIngest func(hash string), onCleanup func(), ...) io.ReadCloser
- type CacheList
- type CacheStatistics
- type CachedResponse
- type CachedResponses
- type Client
- type UpstreamCache
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) CleanupOldEntries ¶
func (*Cache) GetStatistics ¶
func (*Cache) ManageCache ¶
func (c *Cache) ManageCache()
func (*Cache) SetupIngestion ¶ added in v0.0.11
func (c *Cache) SetupIngestion( src io.ReadCloser, onIngest func(hash string), onCleanup func(), logger *zerolog.Logger, ) io.ReadCloser
type CacheList ¶ added in v0.0.11
type CacheList map[string]map[string]CachedResponses
type CacheStatistics ¶
type CachedResponse ¶
type CachedResponses ¶
type CachedResponses []CachedResponse
type UpstreamCache ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
httpcaching
Implements the parsing for RFC 9111 section 5.2.2 'Response directives' in addition to RFC 8246 and 5861
|
Implements the parsing for RFC 9111 section 5.2.2 'Response directives' in addition to RFC 8246 and 5861 |
Click to show internal directories.
Click to hide internal directories.