Skip to content

Commit e670d41

Browse files
committed
Updated deps
Signed-off-by: Vishal Rana <[email protected]>
1 parent 5415ab4 commit e670d41

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

Gopkg.lock

Lines changed: 28 additions & 4 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
@@ -39,7 +39,7 @@
3939

4040
[[constraint]]
4141
name = "github.com/labstack/labstack-go"
42-
version = "0.20.1"
42+
version = "0.20.2"
4343

4444
[[constraint]]
4545
name = "github.com/stretchr/testify"

cube/cube.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
type (
12-
// Config defines the config for LabStack cube middleware.
12+
// Config defines the config for Cube middleware.
1313
Config struct {
1414
// Skipper defines a function to skip middleware.
1515
Skipper middleware.Skipper
@@ -41,22 +41,23 @@ type (
4141
)
4242

4343
var (
44-
// DefaultConfig is the default LabStack cube middleware config.
44+
// DefaultConfig is the default Cube middleware config.
4545
DefaultConfig = Config{
4646
Skipper: middleware.DefaultSkipper,
4747
BatchSize: 60,
4848
DispatchInterval: 60,
4949
}
5050
)
5151

52-
// Middleware implements LabStack cube middleware.
52+
// Middleware implements Cube middleware.
5353
func Middleware(accountID, apiKey string) echo.MiddlewareFunc {
5454
c := DefaultConfig
55+
c.AccountID = accountID
5556
c.APIKey = apiKey
5657
return MiddlewareWithConfig(c)
5758
}
5859

59-
// MiddlewareWithConfig returns a LabStack cube middleware with config.
60+
// MiddlewareWithConfig returns a Cube middleware with config.
6061
// See: `Middleware()`.
6162
func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
6263
// Defaults

0 commit comments

Comments
 (0)