mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
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
|
||
|
}
|