forked from TrueCloudLab/frostfs-node
[#255] services/audit: Implement task manager
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0f0be2377b
commit
580c9c974a
3 changed files with 138 additions and 0 deletions
13
pkg/services/audit/taskmanager/push.go
Normal file
13
pkg/services/audit/taskmanager/push.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package audittask
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/audit"
|
||||
)
|
||||
|
||||
// PushTask adds a task to the queue for processing.
|
||||
//
|
||||
// Returns error if task was not added to the queue.
|
||||
func (m *Manager) PushTask(t *audit.Task) error {
|
||||
m.ch <- t
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue