[#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 committed by Gitea
parent cc0fef2c55
commit 7e3810d654
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.