Skip to content

Commit 80e2341

Browse files
committed
Updated vendor
Signed-off-by: Vishal Rana <[email protected]>
1 parent eefad94 commit 80e2341

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Gopkg.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cube/cube.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ type (
1414
// Skipper defines a function to skip middleware.
1515
Skipper middleware.Skipper
1616

17-
// Node name
18-
Node string `json:"node"`
17+
// App ID
18+
AppID string
1919

20-
// Node group
21-
Group string `json:"group"`
20+
// App name
21+
AppName string
2222

2323
// LabStack API key
2424
APIKey string `json:"api_key"`
@@ -69,8 +69,8 @@ func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
6969

7070
// Initialize
7171
cube := labstack.NewClient(config.APIKey).Cube()
72-
cube.Node = config.Node
73-
cube.Group = config.Group
72+
cube.AppID = config.AppID
73+
cube.AppName = config.AppName
7474
cube.APIKey = config.APIKey
7575
cube.BatchSize = config.BatchSize
7676
cube.DispatchInterval = config.DispatchInterval
@@ -81,11 +81,11 @@ func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
8181
if config.Skipper(c) {
8282
return next(c)
8383
}
84-
cr := cube.Start(c.Request(), c.Response())
84+
r := cube.Start(c.Request(), c.Response())
8585
if err = next(c); err != nil {
8686
c.Error(err)
8787
}
88-
cube.Stop(cr, c.Response().Status, c.Response().Size)
88+
cube.Stop(r, c.Response().Status, c.Response().Size)
8989
return
9090
}
9191
}

0 commit comments

Comments
 (0)