add bulk with go routines
This commit is contained in:
parent
56a7e26248
commit
52d3ad065b
9 changed files with 324 additions and 127 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue