1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 10:57:05 +00:00
Commit Graph

136 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
f6905a3f79 New Context.SetLogoutFunc/Logout and SetFunc/CallFunc methods
Read HISTORY.md
2020-10-12 02:07:04 +03:00
Gerasimos (Makis) Maropoulos
a04a6b5011 add accesslog+proxy example 2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
d5a179cc45 fix UseRouter not respected by iris-cli live reload 2020-09-18 02:08:27 +03:00
Gerasimos (Makis) Maropoulos
7fa2666f58 add accesslog+MVC example 2020-09-17 18:01:35 +03:00
Gerasimos (Makis) Maropoulos
85b5453ae1 add auth/jwt/refresh-token example as requested at #1635 2020-09-16 13:57:11 +03:00
Gerasimos (Makis) Maropoulos
076f806925 accesslog: SetOutput change at servetime and wait(no lock) until prev is closed as requested at #1631 2020-09-14 17:35:17 +03:00
Gerasimos (Makis) Maropoulos
d00a4b33f1 accesslog: experimental SetOutput at serve-time as requested at #1631 2020-09-14 13:37:42 +03:00
Gerasimos (Makis) Maropoulos
701713efdb accesslog: add Truncate method as requested at #1631 2020-09-14 12:15:08 +03:00
Gerasimos (Makis) Maropoulos
54a095c23f Add example for custom fast Accesslog Formatter 2020-09-14 02:35:01 +03:00
Gerasimos (Makis) Maropoulos
fb00ecd2b7 accesslog: add a blank configuration field as requested at #1627 2020-09-13 17:01:57 +03:00
Gerasimos (Makis) Maropoulos
7431fcc9cf more tiny improvements 2020-09-13 14:28:05 +03:00
Gerasimos (Makis) Maropoulos
65b7983d7a minor 2020-09-13 04:20:00 +03:00
Gerasimos (Makis) Maropoulos
4845b77177 accesslog: improvements and new features
relative to: #1601 and #1624
2020-09-13 02:56:22 +03:00
Gerasimos (Makis) Maropoulos
2b342a5122 accesslog: add CSV format
relative to: https://github.com/kataras/iris/issues/1601
2020-09-12 12:34:59 +03:00
Gerasimos (Makis) Maropoulos
a30bbb61f7 accesslog: export the delimeter used on default formatter and improve its performance
relative to: #1601 and #1622
2020-09-11 23:22:18 +03:00
Gerasimos (Makis) Maropoulos
17b32e3aaa thanks @hazmi-e205 and @remyDeme 2020-09-11 11:42:27 +03:00
Gerasimos (Makis) Maropoulos
e63d1041d2 accesslog: add IP in builtin fields, change the format a bit. Default func: remove compression middleware, force-set debug log level, replace the old request logger with the accesslog one, use request id middlewareand keep recovery 2020-09-11 09:38:55 +03:00
Gerasimos (Makis) Maropoulos
0f5ec75d54 accesslog: Timestamp to unix milliseconds instead of seconds
relative to https://github.com/kataras/iris/issues/1601#issuecomment-690868305
2020-09-11 07:51:24 +03:00
Gerasimos (Makis) Maropoulos
16a794a245 acesslog new example: custom fields and custom template 2020-09-10 21:40:30 +03:00
Gerasimos (Makis) Maropoulos
2bb04823b0 recover, accesslog middlewares: give more information to the stored error, accesslog: make use of that information and introduce panic log levels
relative to: https://github.com/kataras/iris/issues/1601#issuecomment-690541789
2020-09-10 21:03:34 +03:00
Gerasimos (Makis) Maropoulos
facc94b725 accesslog: improvements 2020-09-10 19:41:30 +03:00
Gerasimos (Makis) Maropoulos
ae67987f55 accesslog: log error bodies and communicate with the recover middleware 2020-09-10 14:47:14 +03:00
Gerasimos (Makis) Maropoulos
777ef0cd3e i18n: expose the LoaderConfig from the main i18n instance and add an example
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
2020-09-10 05:17:03 +03:00
Gerasimos (Makis) Maropoulos
b77227a0f9 accesslog: NEW log broker and many more features
some fixes about context clone, fix response recorder concurrent access, fix reload views with only ParseTemplate and more
2020-09-09 14:43:26 +03:00
Gerasimos (Makis) Maropoulos
61a9eff43e accesslog middleware: more examples and usecase, e.g. log latency per handler and sessions values or authentication
relative to: #1601
2020-09-09 08:21:10 +03:00
Gerasimos (Makis) Maropoulos
d6867e1f9e accesslog middleware: add total bytes received and sent
relative to: https://github.com/kataras/iris/issues/1601
2020-09-08 13:44:50 +03:00
Gerasimos (Makis) Maropoulos
dac834cf11 new accesslog middleware: require the writer inside its constructor so we can 'detect' if we must force-lock a writer
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 18:04:35 +03:00
Gerasimos (Makis) Maropoulos
e96a009d3f accesslog: LockWriter (to lock unprotected writers) and Clock (for testing)
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 16:31:43 +03:00
Gerasimos (Makis) Maropoulos
4c6568b874 minor 2020-09-07 14:31:19 +03:00
Gerasimos (Makis) Maropoulos
b063fbf3c8 minor (see previous commit) 2020-09-07 11:53:16 +03:00
Gerasimos (Makis) Maropoulos
07806ba270 more improvements to the new accesslog middleware: ability to add custom fields and change the order on the printable result
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 11:35:27 +03:00
Gerasimos (Makis) Maropoulos
4dca8f6088 improvements on the new accesslog middleware
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 06:12:45 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c add accesslog middleware (rel: #1601) 2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
8d99b46801 minor improvements 2020-08-31 09:40:27 +03:00
Gerasimos (Makis) Maropoulos
6f9a453160 DBUG API: mark overlapped routes, hide the builtin functionality (read description)
also reference the correct file:line on <autogenerated> (by searching for the file,line of method inside the embedded fields themselves, as go automatically generates the methods foreach struct for their embedded fields)

fix UseGlobal may override the overlap feature
2020-08-28 16:02:14 +03:00
Gerasimos (Makis) Maropoulos
d44b69faed Add Party.ResetRouterFilters
relative to: https://github.com/kataras/iris/issues/1604#issuecomment-680410131
2020-08-26 06:57:36 +03:00
Gerasimos (Makis) Maropoulos
1780d97d44 update the subdomain redirect example using the rewrite middleware 2020-08-26 00:07:07 +03:00
Gerasimos (Makis) Maropoulos
5e82fa5b89 mvc: struct field and method dependency logs on debug level. Read HISTORY.md
- remove Party.GetReporter

- Read HISTORY.md
2020-08-24 21:44:29 +03:00
Gerasimos (Makis) Maropoulos
a018ba9b0a add example for #1601 2020-08-22 03:21:44 +03:00
Gerasimos (Makis) Maropoulos
95c3c2a951 rewrite middleware: add a feature which supports users.json to users?format=json local route redirection 2020-08-21 18:09:21 +03:00
Gerasimos (Makis) Maropoulos
cb80e43ff0 rewrite middleware: add subdomain redirect example 2020-08-20 16:34:19 +03:00
Gerasimos (Makis) Maropoulos
ffae9c0d09 rewrite middleware: add PrimarySubdomain and simplify its usage example 2020-08-20 03:05:47 +03:00
Gerasimos (Makis) Maropoulos
12737c5b7f implement a rewrite middleware 2020-08-19 22:40:17 +03:00
Gerasimos (Makis) Maropoulos
bdb94bbae2 request logger middleware: add graphical information about executed route's handlers 2020-08-19 01:24:36 +03:00
Gerasimos (Makis) Maropoulos
35ab1de212 add TraceRoute feature on request logger 2020-08-18 19:33:07 +03:00
Gerasimos (Makis) Maropoulos
1192e6f787 fix https://github.com/kataras/iris/issues/1594 2020-08-18 05:42:48 +03:00
Gerasimos (Makis) Maropoulos
ab226d925a fix https://github.com/kataras/iris/issues/1590 2020-08-15 15:40:41 +03:00
Gerasimos (Makis) Maropoulos
38eec57e46 add HashGenerator on requestid middleware
Former-commit-id: 8f59a46a3fecc538d6d3e624fc36f2c314c20bb6
2020-07-15 11:18:40 +03:00
Gerasimos (Makis) Maropoulos
0f113dfcda (#1554) Add support for all common compressions (write and read)
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation


Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
Gerasimos (Makis) Maropoulos
29d98ac281 use the new protobuf package and other minor stuff
Former-commit-id: 29bf71e8a73d34b27c6f5fe3f12c4ea1cc2b84b2
2020-06-21 17:15:28 +03:00