Documentation
¶
Overview ¶
Package cache implements an in-memory cache over schematic storage.
Index ¶
- type Options
- type Storage
- func (s *Storage) Collect(ch chan<- prometheus.Metric)
- func (s *Storage) Describe(ch chan<- *prometheus.Desc)
- func (s *Storage) Get(ctx context.Context, id string) ([]byte, error)
- func (s *Storage) Head(ctx context.Context, id string) error
- func (s *Storage) Put(ctx context.Context, id string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.8.1
type Options struct {
MetricsNamespace string
}
Options configures the storage.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a schematic storage in-memory cache.
func (*Storage) Collect ¶
func (s *Storage) Collect(ch chan<- prometheus.Metric)
Collect implements prom.Collector interface.
func (*Storage) Describe ¶
func (s *Storage) Describe(ch chan<- *prometheus.Desc)
Describe implements prom.Collector interface.
Click to show internal directories.
Click to hide internal directories.