Skip to content

Commit 4036746

Browse files
committed
Bumped v0.4.0
Signed-off-by: Vishal Rana <[email protected]>
1 parent 5690241 commit 4036746

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
[[constraint]]
3737
name = "github.com/labstack/labstack-go"
38-
version = "0.8.8"
38+
version = "0.8.3"
3939

4040
[[constraint]]
4141
name = "github.com/stretchr/testify"

cube/cube.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package cube
22

33
import (
4+
"time"
5+
46
"github.com/labstack/echo"
57
"github.com/labstack/echo/middleware"
68
"github.com/labstack/labstack-go"
@@ -13,13 +15,21 @@ type (
1315

1416
// Skipper defines a function to skip middleware.
1517
Skipper middleware.Skipper
18+
19+
// Number of requests in a batch
20+
BatchSize int
21+
22+
// Interval in seconds to dispatch the batch
23+
DispatchInterval time.Duration
1624
}
1725
)
1826

1927
var (
2028
// DefaultConfig is the default Cube middleware config.
2129
DefaultConfig = Config{
22-
Skipper: middleware.DefaultSkipper,
30+
Skipper: middleware.DefaultSkipper,
31+
BatchSize: 60,
32+
DispatchInterval: 60,
2333
}
2434
)
2535

0 commit comments

Comments
 (0)