mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
21625652f3
interface for recording things
17 lines
317 B
Go
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
|
|
}
|