Commit Graph

495 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
414c1ad1ae
add support for embed.FS 2022-09-19 01:15:38 +03:00
Gerasimos (Makis) Maropoulos
057fa462f4
allow setting a custom go-redis client at Iris go redis sessions driver as request at https://chat.iris-go.com 2022-08-15 00:58:49 +03:00
Gerasimos (Makis) Maropoulos
16af6d017f
update deps, go 1.19 2022-08-15 00:44:26 +03:00
Gerasimos (Makis) Maropoulos
3607d0f02a
release v12.2.0-beta4 2022-07-21 13:33:51 +03:00
kataras
8bfea48cd6
new {weekday} path parameter type 2022-06-23 23:01:52 +03:00
Gerasimos (Makis) Maropoulos
ef2643b046
replace ioutil with io package and other minor improvements 2022-06-17 22:03:18 +03:00
Gerasimos (Makis) Maropoulos
288a67bc58
introduce iris.NewGuide() 2022-06-05 22:12:57 +03:00
Gerasimos (Makis) Maropoulos
d8af2a1e14
context transactions removed and make Context.Domain customizable as requested 2022-06-05 06:15:10 +03:00
Gerasimos (Makis) Maropoulos
02077a01fa
Release version 12.2.0-beta2 2022-05-09 03:01:34 +03:00
Gerasimos (Makis) Maropoulos
90750d089d
add '{date}' dynamic path parameter type 2022-04-21 02:17:09 +03:00
Gerasimos (Makis) Maropoulos
ecb1c617df
handle https://github.com/kataras/iris/issues/1875 2022-04-13 02:25:47 +03:00
Gerasimos (Makis) Maropoulos
ae828d8db9
new Application.SetContextErrorHandler method 2022-04-13 01:00:53 +03:00
Gerasimos (Makis) Maropoulos
4dfd4c53d3
new minor features 2022-04-09 14:51:34 +03:00
Gerasimos (Makis) Maropoulos
8652ee09f6
rename the sso to auth package 2022-04-02 17:30:55 +03:00
Gerasimos (Makis) Maropoulos
84d1a60334
add Context.SetJSONOptions 2022-03-31 20:47:01 +03:00
Gerasimos (Makis) Maropoulos
9cf6f9fa5e
add a new Party.EnsureStaticBindings method - read HISTORY.md 2022-03-12 12:32:27 +02:00
Gerasimos (Makis) Maropoulos
4ecc9e3831
add a new x/sqlx sub-package and example 2022-03-08 00:33:08 +02:00
Gerasimos (Makis) Maropoulos
410e5eae83
add a new x/reflex sub-package for reflection common functions - may be improved in the near future 2022-03-06 17:11:56 +02:00
Gerasimos (Makis) Maropoulos
f28203f1be
add Context.ReadMultipartRelated as requested at #1787 2022-03-02 03:49:15 +02:00
Gerasimos (Makis) Maropoulos
61872a1612
Add Party.Container.SetDependencyMatcher, hero.Container.DependencyMatcher and hero.Dependency.Match to fullfil the feature request asked at: #1842 2022-03-01 21:26:02 +02:00
Gerasimos (Makis) Maropoulos
481332090e
register cors middleware on iris.Default() function 2022-03-01 14:00:54 +02:00
Gerasimos (Makis) Maropoulos
5844eaef24
add x/jsonx.DayTime type 2022-02-27 22:38:09 +02:00
Gerasimos (Makis) Maropoulos
20fa672097
fix 2 minor issues 2022-02-26 21:16:08 +02:00
Gerasimos (Makis) Maropoulos
70a73ef80b
publish v12.2.0-alpha7 version 2022-02-25 20:17:02 +02:00
Gerasimos (Makis) Maropoulos
37c766fef7
new x/errors package to handle HTTP wire errors 2022-02-24 23:49:46 +02:00
Gerasimos (Makis) Maropoulos
8ded69fd7e
add new x/timex sub-package 2022-02-21 22:50:27 +02:00
Gerasimos (Makis) Maropoulos
41026c9209
publish v12.2.0-alpha6 2022-02-18 22:19:33 +02:00
Gerasimos (Makis) Maropoulos
4a1f0b6e9e
improvements to the x/client package 2022-01-23 00:47:26 +02:00
Gerasimos (Makis) Maropoulos
e213dba0d3
security fix 2021-12-23 22:05:26 +02:00
Gerasimos (Makis) Maropoulos
2a048df5c7
minor improvement on URLParamSlice 2021-12-16 18:57:14 +02:00
Gerasimos (Makis) Maropoulos
d6cfe3fe5b
new Timeout, TimeoutMessage configuration fields and apps.OnApplicationRegistered listener 2021-12-09 14:44:03 +02:00
Gerasimos (Makis) Maropoulos
48bb9c9c11
minor improvements 2021-11-15 15:29:30 +02:00
Gerasimos (Makis) Maropoulos
51fc2f35ca
new /x/jsonx and /x/mathx util sub-packages 2021-11-06 20:25:25 +02:00
Gerasimos (Makis) Maropoulos
16b9b694d2
new /x/client sub-package 2021-10-31 11:25:11 +02:00
Gerasimos (Makis) Maropoulos
bf54d33a3e
add new ':email' path parameter and revert the jsoniter removal 2021-10-13 16:22:22 +03:00
Gerasimos (Makis) Maropoulos
6d3884b0ce
add iris.IsErrEmptyJSON helper. See HISTORY.md 2021-06-16 13:52:39 +03:00
Gerasimos (Makis) Maropoulos
8f9140b705
New Context.FormFiles method 2021-06-07 15:33:19 +03:00
Gerasimos (Makis) Maropoulos
6219e57135
New APIContainer.EnableStrictMode(bool) method. Read HISTORY.md 2021-04-22 14:00:00 +03:00
Gerasimos (Makis) Maropoulos
89f02c6e87
update jwt dependency and use the current Party if relative path is empty on PartyConfigure only 2021-03-03 14:39:47 +02:00
Gerasimos (Makis) Maropoulos
c1b31ab102
PartyConfigure: try to bind the struct's exported zero fields based on the registered dependencies (if any)
If the PartyConfigurator value accepts only static dependencies then we have zero performance penalty, exactly like a Controller (structure) works
2021-02-21 22:24:01 +02:00
Gerasimos (Makis) Maropoulos
f34703e3cf
minor improvement of the previous commit 2021-02-17 16:57:19 +02:00
Gerasimos (Makis) Maropoulos
cbf70a7bcf
Add new PartyConfigure helper 2021-02-17 16:50:36 +02:00
Gerasimos (Makis) Maropoulos
e901575ca8
Path type parameter error handler: add the parameter index in the input arguments
see previous commit
2021-02-15 11:30:29 +02:00
Gerasimos (Makis) Maropoulos
5990e7f432
NEW (HOT) FEATURE: Add custom error handlers on path type parameters error 2021-02-14 15:31:27 +02:00
Gerasimos (Makis) Maropoulos
567c06702f
respect the iris.WithEmptyFormError option on Context.ReadQuery too
as requested at: #1727
2021-02-14 13:40:56 +02:00
Gerasimos (Makis) Maropoulos
d26b9bfbed
Add Strict option to httptest as requested at: #1722 2021-02-13 21:21:19 +02:00
Gerasimos (Makis) Maropoulos
5fe233278a
add a new 'uuid' path parameter type e.g. /{id:uuid} 2021-02-12 17:12:23 +02:00
Gerasimos (Makis) Maropoulos
5994fd5d4e
New iris.WithKeepAlive(time.Duration) Configurator is added as a helper to enable TCP listener featured with keep-alive 2021-01-31 21:24:15 +02:00
Gerasimos (Makis) Maropoulos
53b3ade7e0
New feature: Context.ReadJSONStream 2021-01-24 23:34:01 +02:00
Gerasimos (Makis) Maropoulos
435f284815
New feature: Fallback views. Read HISTORY.md 2021-01-24 14:08:37 +02:00
Gerasimos (Makis) Maropoulos
541fa75caf
minor (see previous commit) 2021-01-07 05:36:56 +02:00
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