Commit Graph

124 Commits

Author SHA1 Message Date
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
f633ab4b99
new party controllers example 2022-01-08 19:54:33 +02:00
Gerasimos (Makis) Maropoulos
48577b7ff1
minor 2022-01-06 18:49:11 +02:00
Gerasimos (Makis) Maropoulos
485395190b
update dependencies 2021-10-31 11:49:39 +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
856f65be78
remove the 'retract' directive, as it's only available on the latest go release 2021-05-28 19:09:16 +03:00
Gerasimos (Makis) Maropoulos
ce6c455601
add Party.RemoveRoute method as requested in the community chat 2021-04-04 20:24:21 +03: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
5fe233278a
add a new 'uuid' path parameter type e.g. /{id:uuid} 2021-02-12 17:12:23 +02:00
Gerasimos (Makis) Maropoulos
f7757c0793
fix https://github.com/kataras/iris/issues/1713 and add a simple usage example of the 'RemoveHandler' 2021-01-27 01:22:20 +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
7aa2d1f9d5
make versioning.Group a Party compatible by using a type alias on its embedded field
was reported as missing of the a Party method, the type alias is a good hack to solve that
2021-01-05 18:16:32 +02:00
Gerasimos (Makis) Maropoulos
4d857ac53f
New basic auth middleware and GetRaw on User (godocs missing) 2020-11-21 12:04:37 +02: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
373b8993ad
add viper configuration example and minor improvements - read HISTORY.md 2020-09-16 12:59:51 +03:00
Gerasimos (Makis) Maropoulos
a917ef68fc
v12.2.0-alpha 2020-09-13 19:18:57 +03:00
Gerasimos (Makis) Maropoulos
bf9f7617e2
examples: update go.mod (see previous commit) 2020-09-05 08:56:01 +03:00
Gerasimos (Makis) Maropoulos
a3279b8fa9
add a note on rewrite middleware for local URL modifications 2020-08-29 18:15:22 +03:00
Gerasimos (Makis) Maropoulos
00684f9d2e
add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested 2020-08-29 01:21:42 +03:00
Gerasimos (Makis) Maropoulos
9c56ed6261
examples: minor: update go mod master version 2020-08-26 19:37:14 +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
e41e861c4c
update examples go mods 2020-08-21 20:53:45 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c
... 2020-08-21 20:48:41 +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
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
227170fd33
see https://github.com/kataras/iris/issues/1591#issuecomment-674473247 2020-08-16 18:04:52 +03:00
Gerasimos (Makis) Maropoulos
889b7942d3
add two new examples and share the app's specific logger instance with sessions databases and APIBuilder 2020-08-16 07:07:36 +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
Gerasimos (Makis) Maropoulos
dc35391ceb
fix https://github.com/kataras/iris/issues/1584 2020-08-14 13:04:48 +03:00
Gerasimos (Makis) Maropoulos
46a3a99adf
various improvements and new 'UseOnce' method - read HISTORY.md 2020-08-06 03:35:58 +03:00
Gerasimos (Makis) Maropoulos
802348cedd fix https://github.com/kataras/iris/issues/1569#issuecomment-663739177
Former-commit-id: c55f1023f4d93f6712c7fa4d299bcf1098872ecf
2020-07-25 09:23:34 +03:00
Gerasimos (Makis) Maropoulos
c3205dafa1 New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string

relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446


Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
2020-07-24 13:03:49 +03:00
Gerasimos (Makis) Maropoulos
a1991a0830 README: update benchmarks.
minor performance boost by making RequestParameter  Set and Get methods more direct to the underline Memstore's kv


Former-commit-id: 4fae45b5bd23804e88aac1f7c66055dd81efc9c9
2020-07-18 14:35:27 +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
38b0a796bd fix #1552
Former-commit-id: 953df27468e3905e557bb1f6a97ea431cb60f6a6
2020-07-06 19:08:02 +03:00
Gerasimos (Makis) Maropoulos
beb3f730a0 add an example (and a test case) for same route path pattern but different macro function's input argument
Former-commit-id: f20ac838a08473b6b8114b407cb0dcde7765f634
2020-07-02 20:56:22 +03:00
Gerasimos (Makis) Maropoulos
43502ed047 minor
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
2020-06-18 09:36:47 +03:00
Gerasimos (Makis) Maropoulos
6557dcf6c5 add route-handlers-execution-rules example
Former-commit-id: 95e3dfad33b98d20b761ea1d06dee8df91c3632d
2020-06-17 00:02:09 +03:00
Gerasimos (Makis) Maropoulos
6d977dacd2 minor example fix (design change that was actually not pushed)
Former-commit-id: db253c191bad711b592d914d386675bf118e497c
2020-06-08 05:19:12 +03:00
Gerasimos (Makis) Maropoulos
7bb2223226 fix #1531 and introduce the 'Configuration.ResetOnFireErrorCode' (read HISTORY.md)
Former-commit-id: 84f1e894378a6dfd94e0bf057f4037e35aee0c4f
2020-06-08 05:16:55 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5 reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00