erigon-pulse/cl/freezer/freezer.go
a 21625652f3
[caplin] record mode (#7651)
interface for recording things
2023-06-04 03:13:58 +02:00

17 lines
317 B
Go

package freezer
import "io"
type Freezer interface {
Getter
Putter
}
type Getter interface {
Get(namespace, object, id string, extra ...string) (data io.ReadCloser, sidecar []byte, err error)
}
type Putter interface {
Put(data io.Reader, sidecar []byte, namespace, object, id string, extra ...string) error
}