[#19] transformer: Move EpochSource to other types

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-02-23 16:56:38 +03:00
parent 51bad6dfdb
commit 4917a71855
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +0,0 @@
package transformer
type EpochSource interface {
CurrentEpoch() uint64
}

View file

@ -16,6 +16,11 @@ type AccessIdentifiers struct {
ParentHeader *object.Object
}
// EpochSource is a source for the current epoch.
type EpochSource interface {
CurrentEpoch() uint64
}
// ObjectTarget is an interface of the object writer.
type ObjectTarget interface {
// WriteHeader writes object header w/ payload part.