1
0
Fork 0
Commit graph

34 Commits

Autor SHA1 Nachricht Datum
Sebastian Tobie 4aa50328f2 changed the format of the xid to string 2022-11-19 19:04:36 +01:00
Sebastian Tobie f8a7689fea added the uuid type for conversion
i decided to use github.com/gofrs/uuid, since it implements uuidv7
2022-11-19 13:41:28 +01:00
Sebastian Tobie 1d647c7d00 Added better error handling 2022-11-19 11:28:27 +01:00
Sebastian Tobie 2326ceb32e fixed the SetupMigrator 2022-11-19 11:05:06 +01:00
Sebastian Tobie 8d9b870820 added a small helper function 2022-11-18 14:10:59 +01:00
Sebastian Tobie 0f9fded567 added a new sitetype for sites that need access to the pool outside of requests 2022-11-14 10:37:23 +01:00
Sebastian Tobie 076e26ae0e switched json with jsonld 2022-11-11 22:16:02 +01:00
Sebastian Tobie 3ead80fe16 splitted Middleware.Sites into PreSetupMiddleware.PreSetup and PostSetupMiddleware.PostSetup
this fixes the problem where dependency problems are fixed
2022-11-07 18:45:04 +01:00
Sebastian Tobie 03b6c3d059 upgrade pgx from v4 to v5 and tern to v2 2022-11-06 12:29:08 +01:00
Sebastian Tobie 890dddb04f clarified the commend on an method 2022-11-06 11:05:16 +01:00
Sebastian Tobie 93c1b7a8b0 added an wellknown middleware 2022-11-06 10:53:38 +01:00
Sebastian Tobie 487a8b4c64 changed logging to zerolog and raised the minimal go version to 1.19 2022-11-06 10:52:24 +01:00
Sebastian Tobie 5c33058038 updated documentation 2022-11-05 08:44:37 +01:00
Sebastian Tobie 9c6feec4ea replaced phuslu/log with zerolog 2022-11-05 08:29:17 +01:00
Sebastian Tobie 7d937967c4 revised the Interfaces.
The Middleware type can now fully used without porblems.
2021-11-11 23:06:48 +01:00
Sebastian Tobie 1c151cdd04 contants have been moved to an own package 2021-11-11 23:05:07 +01:00
Sebastian Tobie 198881d347 in an panic the log now contains the stacktrace 2021-11-10 19:06:23 +01:00
Sebastian Tobie 327adffebf the LogMiddleware now produces less severe log enttries, which should keep the log more calm 2021-11-07 21:40:44 +01:00
Sebastian Tobie 608bc051d2 fixed some pelling mistakes 2021-10-25 22:28:39 +02:00
Sebastian Tobie 7896a45398 the contextkey now refers now to the function for getting the database. 2021-02-28 14:01:31 +01:00
Sebastian Tobie 1f800c0089 cleaned the code a bit up 2021-02-27 14:04:35 +01:00
Sebastian Tobie d38cf41d23 added a check if the migrator fails 2021-02-27 14:03:20 +01:00
Sebastian Tobie b7b70afba4 added a workaround to use a embed.fs filesystem. 2021-02-27 11:54:10 +01:00
Sebastian Tobie e15e855531 sql gets unset in logging of the migrations 2021-02-27 09:40:54 +01:00
Sebastian Tobie ab82f41ec4 fixed the migrations 2021-02-27 09:34:19 +01:00
Sebastian Tobie 230314d53f the database middelware. 2021-02-27 00:38:06 +01:00
Sebastian Tobie dcabcdff25 added the Middleware interface
the middleware interface helps with middleware that requires to have
backgroundtasks or open connections.
2021-02-27 00:36:11 +01:00
Sebastian Tobie c2ca39ec19 the Chain now aborts the chain if user is not logged in 2021-01-24 12:10:29 +01:00
Sebastian Tobie 9817b81b92 use the global constant for accounts. 2021-01-24 00:43:31 +01:00
Sebastian Tobie ba2ed57968 cleaned up the LogMiddleware 2021-01-19 00:18:08 +01:00
Sebastian Tobie a69e026b70 added Require User 2021-01-19 00:13:35 +01:00
Sebastian Tobie dcbfbf9ea8 cleaned up LogMiddleware 2021-01-10 15:15:29 +01:00
Sebastian Tobie f7b6593205 wrong package name of middleware module 2021-01-10 01:44:10 +01:00
Sebastian Tobie c22cb74864 first version of my httpserver 2021-01-09 21:39:05 +01:00