frostfs-node/pkg/innerring/processors/audit/events.go
Alex Vanin 87e1252065 [#265] innerring: Generate new audit event
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-12-25 16:49:27 +03:00

19 lines
313 B
Go

package audit
// Start is a event to start new round of data audit.
type Start struct {
epoch uint64
}
// MorphEvent implements Event interface.
func (a Start) MorphEvent() {}
func NewAuditStartEvent(epoch uint64) Start {
return Start{
epoch: epoch,
}
}
func (a Start) Epoch() uint64 {
return a.epoch
}