add bulk with go routines

This commit is contained in:
alexisvisco 2019-03-27 15:22:27 +01:00
parent 56a7e26248
commit 52d3ad065b
9 changed files with 324 additions and 127 deletions

View file

@ -1,11 +1,15 @@
package sonic
// Action refer to list of actions for TRIGGER command.
type Action string
const (
// Consolidate action is not detailed in the sonic protocol.
Consolidate Action = "consolidate"
)
// IsActionValid check if the action passed in parameter is valid.
// Mean that TRIGGER command can handle it.
func IsActionValid(action Action) bool {
return action == Consolidate
}