File tree Expand file tree Collapse file tree 3 files changed +34
-9
lines changed Expand file tree Collapse file tree 3 files changed +34
-9
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 99)
1010
1111type (
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
4343var (
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.
5353func 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()`.
6162func MiddlewareWithConfig (config Config ) echo.MiddlewareFunc {
6263 // Defaults
You can’t perform that action at this time.
0 commit comments