Created utilities/mesosUtils that can hold all the interactions with mesos. Moved longFilter and defaultFilter to mesosUtils.
This commit is contained in:
parent
2cd77a7ba8
commit
6d4446413d
1 changed files with 11 additions and 0 deletions
11
utilities/mesosUtils/mesosUtils.go
Normal file
11
utilities/mesosUtils/mesosUtils.go
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
package mesosUtils
|
||||||
|
|
||||||
|
import (
|
||||||
|
mesos "github.com/mesos/mesos-go/mesosproto"
|
||||||
|
"github.com/golang/protobuf/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
DefaultFilter = &mesos.Filters{RefuseSeconds: proto.Float64(1)}
|
||||||
|
LongFilter = &mesos.Filters{RefuseSeconds: proto.Float64(1000)}
|
||||||
|
)
|
Reference in a new issue