Commits on Source (24)
-
gjahn authored
-
gjahn authored
Using the Param "name" to create an Item and persist turns out to be affected bi Fiber's behaviour of "zero allocation", which means values may be re-used across requests/contexts. This caused wrong or chunked up Item names in the ephemeral state, which only surfaced during unit testing. For more details see https://docs.gofiber.io/#zero-allocation
-
gjahn authored
Initially, that was done to prevent flaky test runs, which turned out to be caused by Fiber's behaviour (se previous commit).
-
gjahn authored
-
gjahn authored
Somebody havent heard about SemVer yet. The Ctx.GetReqHeaders() return value slightly changed (string to []string), which now requires to first join the slice before checking whether it contains the given string
-
gjahn authored
Fore more information see https://go.dev/blog/maps#concurrency
-
gjahn authored
The location where the actual items should reside is in the store, while only references are being returned when attempting to access an item.
-
gjahn authored
-
gjahn authored
THis change set aims to simulate running test as if they would be executed in a pipeline
-
gjahn authored
* remove some spaces * return item.Name() instead of map key * re-order router log output
-
gjahn authored
-
gjahn authored
-
gjahn authored
-
gjahn authored
-
gjahn authored
-
gjahn authored
-
gjahn authored
-
-
gjahn authored
-
gjahn authored
* new slog in stdlib is utilized for that and replaces 'log' pkg * configuration pkg is used validate and now set/define/refer log level values * the 'error' level call is not fatal, thus os.Exit is called instead
-
gjahn authored
Although, password file is checked during config validation, sth may have changed the file content in the short period of time between validation and DB client initialization, hence exiting in case of an error
-
gjahn authored
-
gjahn authored
Showing
- .gitlab-ci.yml 11 additions, 0 deletions.gitlab-ci.yml
- Makefile 3 additions, 0 deletionsMakefile
- README.md 27 additions, 10 deletionsREADME.md
- configuration/config.go 44 additions, 11 deletionsconfiguration/config.go
- go.mod 5 additions, 5 deletionsgo.mod
- go.sum 10 additions, 0 deletionsgo.sum
- main.go 19 additions, 3 deletionsmain.go
- routing/routes.go 96 additions, 20 deletionsrouting/routes.go
- routing/routes_test.go 24 additions, 14 deletionsrouting/routes_test.go
- routing/templates.go 11 additions, 0 deletionsrouting/templates.go
- state/ephemeral.go 23 additions, 7 deletionsstate/ephemeral.go
- state/ephemeral_test.go 37 additions, 0 deletionsstate/ephemeral_test.go
- state/item.go 2 additions, 2 deletionsstate/item.go
- state/persistent.go 15 additions, 5 deletionsstate/persistent.go
- state/store.go 2 additions, 2 deletionsstate/store.go
.gitlab-ci.yml
0 → 100644
state/ephemeral_test.go
0 → 100644