prometheus/persistence.go
2012-11-24 12:33:34 +01:00

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
}