forked from TrueCloudLab/frostfs-node
4204a9f920
Define a processor of events related to monetary transactions. Define audit-related event. Provide an interface for processing the audit payout event. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
19 lines
336 B
Go
19 lines
336 B
Go
package settlement
|
|
|
|
import "github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
|
|
|
type auditEventHandler struct {
|
|
log *logger.Logger
|
|
|
|
epoch uint64
|
|
|
|
proc AuditProcessor
|
|
}
|
|
|
|
func (p *auditEventHandler) handle() {
|
|
p.log.Info("process audit settlements")
|
|
|
|
p.proc.ProcessAuditSettlements(p.epoch)
|
|
|
|
p.log.Info("audit processing finished")
|
|
}
|