mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 08:04:04 -08:00
16 lines
266 B
Go
16 lines
266 B
Go
package main
|
|
|
|
type Pair struct {
|
|
Left []byte
|
|
Right []byte
|
|
}
|
|
|
|
type Persistence interface {
|
|
Has(key Encoder) (bool, error)
|
|
Get(key Encoder) ([]byte, error)
|
|
GetAll() ([]Pair, error)
|
|
Drop(key Encoder) error
|
|
Put(key Encoder, value Encoder) error
|
|
Close() error
|
|
}
|