Commit Graph

394 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
240fdb6dc3
API versioning improvements
Replace the go-version package with a regex-free alternative semver

the result: versioned apis have almost zero performance cost now

thanks @motogo for your kind donation ❤️ - please check your github notifications
2021-01-07 04:14:41 +02:00
Gerasimos (Makis) Maropoulos
b409f7807e
New feature: versioning.Aliases
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
2021-01-06 01:52:39 +02:00
Gerasimos (Makis) Maropoulos
11e21150d0
more features and fix database/mysql:jwt example 2020-11-24 14:58:02 +02:00
Gerasimos (Makis) Maropoulos
7b6a8f1e26
simplify some examples 2020-11-07 12:49:14 +02:00
Gerasimos (Makis) Maropoulos
7f523d52e1
thank you @dtrifonov for your donation ❤️ 2020-11-06 14:19:53 +02:00
Gerasimos (Makis) Maropoulos
8eea0296a7
As noticed in my previous commit, the existing jwt libraries added a lot of performance cost between jwt-featured requests and simple requests. That's why a new custom JWT parser was created. This commit adds our custom jwt parser as the underline token signer and verifier 2020-10-30 22:12:16 +02:00
Gerasimos (Makis) Maropoulos
d517f36a29
minor commit. But I am not happy with the jwt implementations for Go...they seem to produce enough performance cost, will try to make a jwt parser by myself and see the difference 2020-10-19 10:05:48 +03:00
Gerasimos (Makis) Maropoulos
3db77684ec
add a very simple example on JWT and move the previous to the 'overview' sub folder 2020-10-18 20:31:58 +03:00
Gerasimos (Makis) Maropoulos
637f7aeea7
add context.ReadURL - relative to #1659 2020-10-18 19:26:43 +03:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and  add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
8e51a296b9
Add Context.SetUser and Context.User methods
relative to: https://github.com/iris-contrib/middleware/issues/63
2020-10-12 15:52:53 +03:00
Gerasimos (Makis) Maropoulos
546c7bf465
add RemoveHandler to Party too, as requested at #1658 2020-10-12 12:56:54 +03:00
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
ff7417badd
Add Route.RemoveHandler (a fast change to the previous commit) 2020-10-09 18:53:00 +03:00
Gerasimos (Makis) Maropoulos
ae8190eb97
add Route.RemoveMiddleware method
Useful when all routes under a Party accept a middleware with some exceptions.

For Party-level use its Reset method instead, unless otherwise requested
2020-10-09 18:31:38 +03:00
Gerasimos (Makis) Maropoulos
cc7e3860f2
fix #1610 #1651 - read HISTORY.md 2020-10-04 16:50:21 +03:00
Gerasimos (Makis) Maropoulos
4065819688
New: i18n pluralization and variables support and more...
fixes: #1649, #1648, #1641, #1650

relative to: #1597
2020-09-29 19:19:19 +03:00
Gerasimos (Makis) Maropoulos
373b8993ad
add viper configuration example and minor improvements - read HISTORY.md 2020-09-16 12:59:51 +03:00
Gerasimos (Makis) Maropoulos
3baee7db34
add Party.SetRoutesNoLog and mvc.Application.SetControllersNoLog as requested at #1630 2020-09-15 00:23:09 +03:00
Gerasimos (Makis) Maropoulos
b17217444e
add IsDebug() shortcut method 2020-09-10 16:20:19 +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
cf0338d342
fix https://github.com/kataras/iris/issues/1621 2020-09-10 11:24:23 +03:00
Gerasimos (Makis) Maropoulos
333be428c4
use jet v5.0.2 (no breaking changes)
relative to: https://github.com/kataras/iris/pull/1616
2020-09-10 10:12:06 +03:00
Gerasimos (Makis) Maropoulos
59b8ddf5be
i18n: add the ability to register template funcs per locale 2020-09-10 06:22:53 +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
a4996b90c8
Add a 'ParseTemplate' method on view engines to manually parse and add a template from a text
examples at: https://github.com/kataras/iris/tree/master/_examples/view/parse-template

relative to: https://github.com/kataras/iris/issues/1617
2020-09-08 07:55:33 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c
add accesslog middleware (rel: #1601) 2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
e1f25eb098
Full support of the http.FileSystem on all view engines as requested at #1575
Also, the HandleDir accepts both string and http.FileSystem (interface{}) (like the view's fs)
2020-09-05 08:34:09 +03:00
Gerasimos (Makis) Maropoulos
dbeb7bfb73
add Context.ReadHeaders 2020-08-31 21:28:13 +03:00
Gerasimos (Makis) Maropoulos
477f5e6f9b
add Context.ReadParams method 2020-08-31 20:30:01 +03:00
Gerasimos (Makis) Maropoulos
2f51845138
add mvc.Err on builtin mvc and hero dependencies 2020-08-31 15:30:45 +03:00
Gerasimos (Makis) Maropoulos
8d99b46801
minor improvements 2020-08-31 09:40:27 +03:00
Gerasimos (Makis) Maropoulos
d0a27d2c08
add a simple URLParamSlice
I would love to change the current URLParams() to URLParams(name string) []string to match the PostValues(name string) []string, error but that would be a big breaking changes to many servers... so stick with it.
2020-08-31 05:07:55 +03:00
Gerasimos (Makis) Maropoulos
b9f38be9ea
add sqlx example 2020-08-30 18:24:24 +03:00
Gerasimos (Makis) Maropoulos
07f07ecf6c
New Context.PostValueMany. The PostValues method now returns a second output argument of error too
relative to: #1609
2020-08-29 17:58:16 +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
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
8e049d77c9
HandleHTTPError MVC Method as requested at #1595. Read HISTORY.md
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
2020-08-22 08:04:22 +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
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
4228dd8ea4
add some MVC error handle examples 2020-08-18 23:14:11 +03:00
Gerasimos (Makis) Maropoulos
35ab1de212
add TraceRoute feature on request logger 2020-08-18 19:33:07 +03:00
Gerasimos (Makis) Maropoulos
a491cdf7ef
implement #1593 - Read HISTORY.md
updated example: https://github.com/kataras/iris/blob/master/_examples/i18n/main.go#L28-L50
2020-08-18 08:05:51 +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
5481b9a6c1
apps.Switch(apps.Hosts...) example 2020-08-18 04:17:53 +03:00
Gerasimos (Makis) Maropoulos
a61f743fa8
add internal subdomain redirect handler
TODO more things
2020-08-16 20:16:49 +03:00
Gerasimos (Makis) Maropoulos
ef7d365e81
add iris.Minify middleware and Context.OnCloseErr/OnConnectionCloseErr 2020-08-15 17:21:57 +03:00
Gerasimos (Makis) Maropoulos
8340285e7d
fix #1588 2020-08-15 12:17:48 +03:00