1
0
Fork 0
Commit graph

25 Commits

Autor SHA1 Nachricht Datum
Sebastian Tobie d0c86eb95b updated pongo2 dependency 2022-11-05 08:45:48 +01:00
Sebastian Tobie 9c6feec4ea replaced phuslu/log with zerolog 2022-11-05 08:29:17 +01:00
Sebastian Tobie 8e0fda30ba cleaned up the code and updated dependencies 2022-11-05 00:03:21 +01:00
Sebastian Tobie 72cb4d16af splitted the site into configsite and teardownsite 2022-11-04 23:49:35 +01:00
Sebastian Tobie 2589f42da5 errors in the configuration of the middleware are critical now. 2021-11-11 23:18:16 +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 37f4f912a9 im now using pongo2 v4 instead of templates.
The html/template caused only grief.
2021-11-10 19:05:52 +01:00
Sebastian Tobie 6d43861ffc some bigger changes
- The detection of unix and TCP sockets is much better;
- The configuration is now easier exachangable;
- middleware doesn't get lost;
- the defaults func is now supplying the config it needs into the defaults;
2021-11-07 18:51:39 +01:00
Sebastian Tobie aa0592bca9 restructured the server startup 2021-11-06 20:59:56 +01:00
Sebastian Tobie 8594622cae made an huge code cleanup.
go-toml is now not required. Its up to the implementation how it loads/dumps the config.
2021-11-06 13:42:07 +01:00
Sebastian Tobie 2fff12e6f4 created an methodd to stroe templates global and the server can now serve multiple addresses in parrallel. 2021-10-24 18:39:48 +02:00
Sebastian Tobie c3305139d4 changed the Config class to support the new interface to log objects 2021-02-27 00:35:00 +01:00
Sebastian Tobie dceb47069e httpserver is now better usable to handle multiple domains
BREAKING CHANGE:
Authentication is domain dependend and runs in the site registration.
2021-01-24 16:25:58 +01:00
Sebastian Tobie 2c798d6006 added debugging information about the demains 2021-01-23 12:00:51 +01:00
Sebastian Tobie 9973e186ee added support for domains 2021-01-23 11:14:33 +01:00
Sebastian Tobie 37e8ac835e The menus can now be accessed from the handlers 2021-01-20 00:12:54 +01:00
Sebastian Tobie a1b11a6adb added a menu modul.
this module make it easier to use templating.
2021-01-19 23:44:35 +01:00
Sebastian Tobie 5bf5ac8bb2 added an teardownfunction to stop goroutines from the sites. 2021-01-16 19:06:47 +01:00
Sebastian Tobie 63c518f729 forgot to remove the waiting. 2021-01-12 19:29:25 +01:00
Sebastian Tobie 979ae0fbad (*Server).Stop gets the context now from the calling function 2021-01-11 22:45:01 +01:00
Sebastian Tobie 97307bc3d8 added an function to graceful shut down the server. 2021-01-11 22:39:33 +01:00
Sebastian Tobie 3810b30d5d CreateServer uses the (*Server).Use function instead of the internal from the router. 2021-01-10 15:16:26 +01:00
Sebastian Tobie 9dd2e49954 removed useless Method Middleware from the site 2021-01-10 15:14:47 +01:00
Sebastian Tobie c22cb74864 first version of my httpserver 2021-01-09 21:39:05 +01:00