Commit Graph

678 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
1e1d8a4855 minor (see prev commit)
Former-commit-id: 277b7b1517357d6baea98d771b592be2795201a3
2020-05-01 23:37:41 +03:00
Gerasimos (Makis) Maropoulos
3775189de8 New Rate Limit middleware (still WIP though)
Former-commit-id: 99e282e4d400c83a56a808212d812cd701e1bcd8
2020-05-01 23:33:04 +03:00
Gerasimos (Makis) Maropoulos
c3543528cf fix: https://github.com/kataras/i18n/issues/1
Former-commit-id: 12b75f1e54ebf3d7f78a09b8d5594859a344422d
2020-04-30 16:16:43 +03:00
Gerasimos (Makis) Maropoulos
714e84b597 apply https://github.com/kataras/iris/issues/1500
Former-commit-id: 2b5ae1857a5815977507b6b8fc72dd0040d470ca
2020-04-29 21:16:43 +03:00
Gerasimos (Makis) Maropoulos
ac08f53ba0 minor
Former-commit-id: d4eebea0b5849c574e2ffd4b0bb36e4380b14111
2020-04-29 05:50:29 +03:00
Gerasimos (Makis) Maropoulos
2a4043a3c2 more route info improvements
Former-commit-id: ccbe95de0badb1bf448fcc443cecda60772716dc
2020-04-28 22:34:36 +03:00
Gerasimos (Makis) Maropoulos
ac7fac35be update dependencies
Former-commit-id: 95cc5cf2628490e865d6414ab2d8661e803ea05f
2020-04-28 05:51:28 +03:00
Gerasimos (Makis) Maropoulos
c366c34644 add human-friendly middleware names on route debugging (see HISTORY.md#Next)
Former-commit-id: f7291c4a077c4d1573344c93ba8a153fede18795
2020-04-28 05:42:23 +03:00
Gerasimos (Makis) Maropoulos
b657c5e6af don't fire ErrServerClosed on manually interrupt signals (CTRL/CMD+C)
Former-commit-id: 673c84dd13bb99c0926aa1b4a6b4eff9745403d8
2020-04-28 05:22:58 +03:00
Gerasimos (Makis) Maropoulos
27ca1c93f5 logging: several improvements
Former-commit-id: 12538c74a1aa55314c35ac3cf2665646b704851d
2020-04-28 01:58:56 +03:00
Gerasimos (Makis) Maropoulos
d1f18501e8 add a way to customize the handler names (recommended: before server execution) so route logging can be more human-friendly on handlers like standard iris middlewares, e.g. request logger
Former-commit-id: 039c233f2d4da0d52b1d6fc86b6d73be14b15608
2020-04-27 15:48:09 +03:00
Gerasimos (Makis) Maropoulos
f75ec4e67c change the JS MIME to text/javascript instead of application/javascript as https://github.com/golang/go/issues/32351
Former-commit-id: 761be7901fff65ef0ca6e3ea4339ff59f569cf75
2020-04-27 12:28:30 +03:00
Gerasimos (Makis) Maropoulos
346ca2a219 route logging improvement: group by methods
Former-commit-id: ad884991433a244dc76bdad7314d98a5c204dac6
2020-04-26 17:51:27 +03:00
Gerasimos (Makis) Maropoulos
66e641513c more route logging improvements, see the parent commit
Former-commit-id: 973167e3ca7b3463f79ec62ab8be6770727f1c2b
2020-04-26 17:23:38 +03:00
Gerasimos (Makis) Maropoulos
77a79cae58 improve route debug info, see HISTORY.md
Former-commit-id: ae245bae5fefa57c5f7663f7d1d661ec68ad366a
2020-04-26 06:21:20 +03:00
Gerasimos (Makis) Maropoulos
5d3c96947c New: gRPC MVC features, new WithLowercaseRouting option and add some new context methods
read HISTORY.md


Former-commit-id: 30a16cceb11f754aa32923058abeda1e736350e7
2020-04-25 02:30:19 +03:00
Gerasimos (Makis) Maropoulos
0cf5d5a4a3 minor
Former-commit-id: 85c8b1e20da6e39485478025ef1b0f80ef953e4a
2020-04-21 09:27:28 +03:00
Gerasimos (Makis) Maropoulos
6c6de6b85d improve remote addr parsing as requested at: https://github.com/kataras/iris/issues/1453
Former-commit-id: e5fde988eda9bf582b04285a1c77ba123910a699
2020-04-20 10:43:45 +03:00
Gerasimos (Makis) Maropoulos
c5392ede6a remove the 'typescript' package entirely in favor of iris-cli and because the alm editor was deprecated by its author (consider using the designtsx.com instead)
Former-commit-id: 52888ae3fd0da9e5b98e095c665a1a538381ddef
2020-04-19 16:47:15 +03:00
Gerasimos (Makis) Maropoulos
dcf02480b3 Implement ResultHandler as requested at: https://github.com/kataras/iris/issues/1465
Former-commit-id: 9d76c2f00766afd53cf6e591c25f861f179dd817
2020-04-18 22:40:47 +03:00
Gerasimos (Makis) Maropoulos
1bb76853a9 .DI() to ConfigureContainer(...builders)
Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
2020-04-17 15:56:36 +03:00
Gerasimos (Makis) Maropoulos
eafa63da50 add hCaptcha middleware and example and memstore json struct tags
Former-commit-id: 31e4f68429e354c9130ebcf3829683a6d52e4492
2020-04-14 02:22:57 +03:00
Gerasimos (Makis) Maropoulos
486e57b9ae gofmt
Former-commit-id: 23590c343ae9d351f3bed0a64487bb31c58f0dba
2020-04-13 10:03:40 +03:00
Gerasimos (Makis) Maropoulos
6432e34151 typo fix on recaptcha middleware...
Former-commit-id: 214c56fcd84c86742175e37185e130eeae85f07f
2020-04-11 20:23:02 +03:00
Gerasimos (Makis) Maropoulos
e9b10b14a3 add read-body example
Former-commit-id: 7d7afa555e66fbe7edfa31203c26b4b550f336f4
2020-04-11 00:55:31 +03:00
Gerasimos (Makis) Maropoulos
978718454a add 'context.StopWithStatus, StopWithJSON, StopWithProblem' and update the json-struct-validation example
Former-commit-id: dd0347f22324ef4913be284082b8afc6229206a8
2020-04-10 06:04:46 +03:00
Gerasimos (Makis) Maropoulos
ad154ea479 add 'app.Validator' field for ReadJSON, ReadXML, ReadMsgPack, ReadYAML, ReadForm, ReadQuery data validation, defaults to empty but can be set-ed to 3rd-party packages
Former-commit-id: e42d9be5928edcdaad4579c008f741b1a7d97da9
2020-04-09 19:02:08 +03:00
Gerasimos (Makis) Maropoulos
1b02f048ef new 'Party.DI()' method to return the Party's instance of the new 'APIBuilderDI' and move the DI-relative Router to this new APIBuilderDI
Former-commit-id: 2fb81406c6e3162991c90e0918a3cac1b77c2b54
2020-04-08 20:04:56 +03:00
Gerasimos (Makis) Maropoulos
837787104b add context.Protobuf, MsgPack, ReadProtobuf, ReadMsgPack methods
Former-commit-id: 39d547ecfb1516505a1eb76a12a1f6e9e4111962
2020-04-08 16:48:22 +03:00
Gerasimos (Makis) Maropoulos
ee4213f72d update example for validator v10 (go module)
Former-commit-id: dcd729ea0dc6775ca657db2950d2bda5d21388c1
2020-04-07 19:27:49 +03:00
liguoqinjim
f98ee4e725 fix .dokerignore to .dockerignore
Former-commit-id: 61ac943adb6efa7afe96662ab46295be2203a1e3
2020-03-19 16:13:47 +08:00
Gerasimos (Makis) Maropoulos
264c417f4e move benchmarks to a repository which its results are re-calculated and its README re-generated on each run. This will allow dev community to participate and contribute
Former-commit-id: 64287e0be3861663f58fb581cd1f9822379f6586
2020-03-12 01:51:21 +02:00
Gerasimos (Makis) Maropoulos
aea836efc7 add a full gRPC example as previously requested at: https://github.com/kataras/iris/issues/1449
Former-commit-id: 0cb5121e7d44644f7f0eb34597ff34274157fe95
2020-03-07 12:53:23 +02:00
Gerasimos (Makis) Maropoulos
dd18dc9ee8 Add a gRPC router wrapper, useful for the upcoming grpc controller example
Former-commit-id: ae4c29597ce1336a74278b86b59d08b6c91eab0a
2020-03-06 12:28:08 +02:00
Gerasimos (Makis) Maropoulos
0d26f24eb7 examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
2020-03-05 22:41:27 +02:00
Gerasimos (Makis) Maropoulos
5ee06f9a92 next version preparation: hero, mvc: fix payload binding
Former-commit-id: d95f750dd9e1532c9ac0d30a85b383d60acb3178
2020-03-04 10:29:34 +02:00
Gerasimos (Makis) Maropoulos
409f83ca66 ℹ️ add mvc 'ByWildcard' example as requested at #1459
Although, we already had a usage of this as a test at mvc/controller_test.go#testControllerRelPathFromFunc


Former-commit-id: 66343933aa86750615ab89767f149f6636d03be7
2020-03-02 20:11:44 +02:00
Gerasimos (Makis) Maropoulos
78ab341862 minor for travis
Former-commit-id: 2a62e2817e8fc98a77359344a88505151b61654e
2020-03-02 10:21:38 +02:00
Gerasimos (Makis) Maropoulos
5da8ff92f3 🚌 next version preparation: new PreflightResult interface for hero handlers
Former-commit-id: ea2d7ab93889beaddfe269bd213d259d26df979f
2020-03-02 10:07:44 +02:00
Gerasimos (Makis) Maropoulos
ce2eae9121 add a dependency-injection examples folder for the next release and some improvements
Former-commit-id: 040168afb7caf808618f7da5e68ae8eb01cb7170
2020-03-01 02:17:19 +02:00
Gerasimos (Makis) Maropoulos
5fc24812bc ❤️ awesome and unique features for end-developers are coming...
total refactor of the hero and mvc packages, see README#Next (it's not completed yet)


Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
2020-02-29 14:18:15 +02:00
Gerasimos (Makis) Maropoulos
027eb5d6da minor fix required for the upcoming release
Former-commit-id: f04b770f93d7612941340af6e45d7d0516035e14
2020-02-20 05:46:23 +02:00
Gerasimos (Makis) Maropoulos
08403f0317 Update to version 12.1.8 - Read HISTORY.md
Former-commit-id: d3d30cb15537146e3071731be9d674a5cb59de97
2020-02-16 11:14:35 +02:00
Gerasimos (Makis) Maropoulos
19778972e4 fix of https://github.com/kataras/iris/issues/1450#issuecomment-586581677
Former-commit-id: 43318477e7f8bf5f8c35fbf2f53922909a11d8fd
2020-02-15 21:16:08 +02:00
Gerasimos (Makis) Maropoulos
c13fd84354 fix https://github.com/kataras/iris/issues/1450 and continue on implementing 1449
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
2020-02-14 23:34:56 +02:00
Gerasimos (Makis) Maropoulos
09a410c6cb example: gRPC-compatible controller
as requested at: https://github.com/kataras/iris/issues/1449


Former-commit-id: a0af1a78bcfef85f297c5087c8cbb00124226036
2020-02-12 19:27:11 +02:00
Gerasimos (Makis) Maropoulos
a0bda97c87 example: desktop-app/blink: add windows-only build tag
Former-commit-id: d78b7e6cedf9e58eff94a13995bb29fe1686a301
2020-02-10 20:47:33 +02:00
Gerasimos (Makis) Maropoulos
c558e039d5 fix #1446
Former-commit-id: 6ac95ef58bf3dd0dac8bed2100495fa9908f41d4
2020-02-10 20:35:19 +02:00
Gerasimos (Makis) Maropoulos
10f280af63 Update to version 12.1.7
Former-commit-id: 3e214ab6b6da4d1c6e4a66180a4ccfa61c0879ae
2020-02-10 19:40:17 +02:00
Gerasimos (Makis) Maropoulos
ea589b1276 minor
Former-commit-id: 491a1001aff9fc63a0d79efbfee6a78ca711f07c
2020-02-08 13:41:09 +02:00
Gerasimos (Makis) Maropoulos
c55d2063e1 add a simple docker example
Former-commit-id: cacfa3ad903ce542ce455cb2298c40639c645d3c
2020-02-06 18:43:03 +02:00
Gerasimos (Makis) Maropoulos
7096050eda jet example: minor
Former-commit-id: bbcb8d89e7f66465287f896d628679280ddddeba
2020-02-05 12:47:34 +02:00
Gerasimos (Makis) Maropoulos
9c97a8a668 Update to version 12.1.6
Former-commit-id: 4d39e8a764a7c0d91b19a3710d8afe6c8c208c62
2020-02-05 12:36:21 +02:00
Gerasimos (Makis) Maropoulos
3093d65363 version 12.1.5
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
2020-02-02 16:29:06 +02:00
Roberto Civille Rodrigues
2c337e23ed WebAssembly spelling
Former-commit-id: e355f300cb9fbee5038dd9c3cdad9726b557cebb
2020-01-17 15:19:14 -03:00
Gerasimos (Makis) Maropoulos
b2c5ec03fd miscellaneous
Former-commit-id: bc2fddd4da23ec917be5dd9e8bddd4b13cdce050
2020-01-07 03:41:07 +02:00
Gerasimos (Makis) Maropoulos
79a965ec2d minor
Former-commit-id: de1a500475a9d6f96e86445cfb9e85a57a65d1c2
2020-01-05 18:27:21 +02:00
Gerasimos (Makis) Maropoulos
269b832ade Update to version 12.1.4
Former-commit-id: aeb039ea25a831ad1087b1994be97b349a8ed4aa
2019-12-29 19:14:41 +02:00
Gerasimos (Makis) Maropoulos
5f92475dea Merry Christmas: version 12.1.3 released
Former-commit-id: d4c9538646b8c17b32bc49b911e1535bcfe55401
2019-12-25 13:12:20 +02:00
Gerasimos (Makis) Maropoulos
a1c11996b7 Update to version 12.1.2
Former-commit-id: f52b1b6b0680a96ff4a4c246f1451953382ddb36
2019-12-19 11:35:26 +02:00
Gerasimos (Makis) Maropoulos
af90337cfd Update to version 12.1.1 (context.FindClosest)
Former-commit-id: a57d18bab865a7c40b806c7fd2cd4ce1a259699c
2019-12-16 06:50:36 +02:00
Gerasimos (Makis) Maropoulos
a3f944b884 Add context.FindClosest(n) to find closest paths - useful for 404 pages to suggest valid pages
Former-commit-id: 90ff7c9da5369df5bd99fbbecf9955a8c555fea5
2019-12-16 02:00:42 +02:00
Gerasimos (Makis) Maropoulos
04477c3e41 fixes, i18n, sitemap generator and new examples
Former-commit-id: 54801dc705ee0fa66232f65063f8a68c9cc31921
2019-12-13 23:06:18 +02:00
Gerasimos (Makis) Maropoulos
4e9a6be9aa i18n several improvements
trigger #1369


Former-commit-id: af16dd8de1a0096d33c4e4c97f29ec12a73302f4
2019-11-22 02:57:26 +02:00
Gerasimos (Makis) Maropoulos
2c229234f1 add subdomain support for i18n and a custom language Indentifier - rel to: #1369
Former-commit-id: b4d31978f6ddcdcebd18505eaa0db297db462d8e
2019-11-20 16:40:28 +02:00
Gerasimos (Makis) Maropoulos
eb3328dbe9 add tests for #1369 and various improvements
Former-commit-id: 2fe1f077cf5b6a0fb32a27cf86462fea776a7d58
2019-11-20 02:35:41 +02:00
Gerasimos (Makis) Maropoulos
0844c109d9 implement path prefx for i18n middleware, as requested at: #1369
Former-commit-id: b0d6b6e7f368e710b01faad9b70dfa4cebdd8c4d
2019-11-19 23:36:18 +02:00
Gerasimos (Makis) Maropoulos
6d60a65339 Merge branch 'master' into v12
Former-commit-id: 50fae564bda3607f4f4208fdcb72f835c1751a1e
2019-11-13 19:19:33 +02:00
Gerasimos (Makis) Maropoulos
8da68a0a43 Add socket.io example
Former-commit-id: 895669c537db46f1694e8006418ea0509c60cb04
2019-11-13 19:18:41 +02:00
Gerasimos (Makis) Maropoulos
75dd5b759f _examples/file-server update to test a party of file server
Former-commit-id: 2137bd00d256d57058bedd3b4a5868427cbdc64a
2019-11-13 19:14:56 +02:00
Gerasimos (Makis) Maropoulos
42e752b3f5 minor
Former-commit-id: c66f17fb0dc5c130e5060bea4cb4f291e031a36c
2019-11-03 00:41:52 +02:00
Gerasimos (Makis) Maropoulos
dc9ad50e76 fix example as reported as #1390
Former-commit-id: 0864cdb5a77b75919e733dab29a85767333de7f8
2019-11-01 16:07:17 +02:00
Gerasimos (Makis) Maropoulos
303f9d3d69 add a note on http-errors example about #1389
Former-commit-id: 73485e195bc246e8b81a1be3156b361e92c054c7
2019-10-31 06:37:35 +02:00
Gerasimos (Makis) Maropoulos
49fde92db4 remove unnecessary apidoc example comment
Former-commit-id: 3ff3b3aa5296267c8bbdd513fae161d456d2528a
2019-10-28 22:48:39 +02:00
Gerasimos (Makis) Maropoulos
f3cebb747d update the dependencies of the apidoc example
Former-commit-id: 7a126a9e74ff9a05a325e8b65032cb75f90c3e88
2019-10-28 22:47:09 +02:00
Gerasimos (Makis) Maropoulos
466978f1fe examples: minor
Former-commit-id: 7e86dfbbc496bdd33faad744c8242468d95d3055
2019-10-27 11:47:34 +02:00
Gerasimos (Makis) Maropoulos
c3a55462bd fix sessions.ErrNotFound.Equal example
Former-commit-id: 292eadaea9df1c680e68a3f92f86c8bf1edc2d7d
2019-10-26 19:27:58 +03:00
Gerasimos (Makis) Maropoulos
3945fa68d1 obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
d13f1fe877 make the yaag example as go module (to set the latest yaag pseudo-version)
Former-commit-id: 89c03751d93dab5ccc1ee29271f12e99bfe6c8c7
2019-10-25 01:13:25 +03:00
Gerasimos (Makis) Maropoulos
0e2c44e231 fix embedded fs not access to dir list because of options.ShowList unnecessary check. Solves #1383
Former-commit-id: 1ad4535deb1c4792408a3bf63456b333aa752594
2019-10-25 01:04:08 +03:00
Gerasimos (Makis) Maropoulos
07046ab978 formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00
Gerasimos (Makis) Maropoulos
75ea978194 New XMLMap func which makes a map value type an xml compatible content to render and give option to render a Problem as XML - rel to #1335
Former-commit-id: dcf21098ff7af6becfa9896df5f82c3b0b53f0ac
2019-08-16 19:18:46 +03:00
Gerasimos (Makis) Maropoulos
8d188817a6 minor: update jwt example to match the wiki's one
Former-commit-id: 72e3a05a670665631c97a098d5d9d446ab29cee0
2019-08-16 17:02:20 +03:00
Gerasimos (Makis) Maropoulos
a7635afe62 add experimental handlers examples
Former-commit-id: 8d8a0d15afce2554dc5926f6b9bd9c42cb95dad0
2019-08-16 16:57:03 +03:00
Gerasimos (Makis) Maropoulos
db433f7dca minor: sessions: set SameSite to Lax when sharable with subdomains is not disabled.
Former-commit-id: d0b15433d5f325f24972669b485be9cf5be6d68a
2019-08-16 12:41:20 +03:00
Gerasimos (Makis) Maropoulos
c9e9a4b3bc add ProblemOptions https://github.com/kataras/iris/issues/1335#issuecomment-521546506
Former-commit-id: 6c03439d21175f120c37a7d8dd067a0d10de837a
2019-08-15 10:39:38 +03:00
Gerasimos (Makis) Maropoulos
b98bb5a870 Publish version 11.2.6
Former-commit-id: 3563f65de75fe8923ceca8a4b36c8c1cd5abebe7
2019-08-14 11:04:05 +03:00
Gerasimos (Makis) Maropoulos
8e83959c61 implement Problem Details for HTTP APIs #1335
Former-commit-id: ff789b6d535080c88e05c81ab3fb7d9689801ec7
2019-08-12 12:05:21 +03:00
Gerasimos (Makis) Maropoulos
5c91440e46 remove any reference to the pre go1.9 context.Context and replace with iris.Context on some places that were forgotten
got an email feedback about this


Former-commit-id: b1caa261a0d425d8db2091bffb8cfd6065c4e1fa
2019-08-11 15:43:47 +03:00
Gerasimos (Makis) Maropoulos
416324cc42 push version 11.2.4
Former-commit-id: 3451c700c02aa98d7c3f02b305c381b250882791
2019-08-09 23:25:21 +03:00
Gerasimos (Makis) Maropoulos
0271e316e0 minor spelling...
Former-commit-id: ed7222ed2e6677ddfc038b5a87369c9386842c59
2019-08-09 08:28:28 +03:00
Gerasimos (Makis) Maropoulos
6be7bbfbb0 misspell
Former-commit-id: aca03445a2baa4608d3307f3bf329a6591b60a19
2019-08-09 08:27:38 +03:00
Gerasimos (Makis) Maropoulos
b7bc89335d fix https://github.com/kataras/iris/issues/1330
Former-commit-id: 221e01638b671586cdab2b84518bd6a1c8d07bda
2019-08-09 08:24:58 +03:00
Gerasimos (Makis) Maropoulos
eb29a80753 redis sessiondb: support more than one driver - builtin redigo(default) and radix - rel to: #1328
Former-commit-id: 1eee58f2c49f64899fffc3ad61bcf074f8949cc1
2019-08-06 18:40:13 +03:00
Gerasimos (Makis) Maropoulos
95ce71be9f Implement method override wrapper as requested at: #1325
Former-commit-id: e476998d8d6b10dc641b3393577937269adb694c
2019-08-06 15:39:42 +03:00
Gerasimos (Makis) Maropoulos
913634384c minor
Former-commit-id: 64d2bc8657fce2ef4565e0d10dd0f412ee29ffc5
2019-08-03 08:40:48 +03:00
Gerasimos (Makis) Maropoulos
b37b369b51 add content negotiation feature, add context.ReadYAML and fix https://github.com/kataras/neffos/issues/1#issuecomment-515698536
Former-commit-id: 9753e3e45c7c24788b97814d3ecfb4b03f5ff414
2019-08-03 04:41:09 +03:00
Gerasimos (Makis) Maropoulos
970279deb8 minor
Former-commit-id: da3ffd7b32daa12b17ad2863cb55e9d15ec9943a
2019-07-30 18:02:02 +03:00
Gerasimos (Makis) Maropoulos
04834484ff add a test near to the _examples/routing/basic example
Former-commit-id: 24b4ffc004f76355f6269a95ede3488fff9dfe36
2019-07-30 06:04:08 +03:00
Gerasimos (Makis) Maropoulos
700dcc8005 new feature: handle different param types in the exact same path pattern
implements https://github.com/kataras/iris/issues/1315


Former-commit-id: 3e9276f2a95d6fc7c10fbf91186d041dcba72611
2019-07-29 23:09:22 +03:00
Gerasimos (Makis) Maropoulos
f3162254a0 fix https://github.com/kataras/iris/issues/1310
Former-commit-id: bd6e0eb0508fb27aea2ff79ad3a82c0acdd51eb7
2019-07-25 17:08:16 +03:00
Gerasimos (Makis) Maropoulos
29bf846bd1 minor version 11.2.2 - register sessions as middleware and Context.HTML/Text like Context.Writef
Former-commit-id: 6f5f1c502fb06d739c350c3ecc891f495dc03a6e
2019-07-24 19:51:42 +03:00
Gerasimos (Makis) Maropoulos
db0702ca75 implement ReadQuery with 'url' struct field tag name strictly, as requested at: #1207
Former-commit-id: dc0c237f62aa6db5a0c1755b2074d8a18dba0d8f
2019-07-24 03:29:42 +03:00
Gerasimos (Makis) Maropoulos
64cd073d73 Merge branch 'master' into v11.2.0
Former-commit-id: 889380e7eb07c54f159095b617460bdd8dea6251
2019-07-23 19:36:00 +03:00
Gerasimos (Makis) Maropoulos
9ffb04e72d from master
Former-commit-id: 38143f9ea1230ac17a5a20fce0459b6ef3804d90
2019-07-23 19:35:04 +03:00
Gerasimos (Makis) Maropoulos
736709aa75 resolve conflicts with current master v11.1.1
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
79539b0055 add the gorm example from: https://github.com/kataras/iris/pull/1275
Former-commit-id: 5f17e5923e93b65e6853ddcb715cec68209ff0b0
2019-07-23 18:18:36 +03:00
Gerasimos (Makis) Maropoulos
ba2919b4c2 fixes
Former-commit-id: d12fa8ee9af63187a2f143f27b08cbdb80609e2a
2019-07-23 18:12:18 +03:00
Gerasimos (Makis) Maropoulos
4caf8d7d9b remove some examples learning content as they are exist on the wiki itself now
Former-commit-id: 8c69be5bf8ca21eb0e405ca5ad8431ceb1c2511e
2019-07-23 17:47:28 +03:00
Gerasimos (Makis) Maropoulos
bb1a93d7fd touches before release
Former-commit-id: c6539320214e9120a801b2a3c3c8e9867dfb2ed7
2019-07-22 04:32:54 +03:00
Gerasimos (Makis) Maropoulos
452b7d2df0 minor
Former-commit-id: f0a26383ace695525d5aec52ec2181d781d26a83
2019-07-19 12:27:35 +03:00
Gerasimos (Makis) Maropoulos
4c4b2f5d00 New feature: automatic public domain using tunneling: https://github.com/kataras/iris/issues/1305
Former-commit-id: 54844edae9e5eed9bd6b17a06ec8d868923d3681
2019-07-18 00:53:30 +03:00
Gerasimos (Makis) Maropoulos
94f67f7fbb all examples and tests ran successfully based on iris v11.2.0 and go+gomodules 1.12.7
Former-commit-id: a3a9056b321c059b52bd0d46d727a3eb8204174a
2019-07-17 01:56:41 +03:00
roamboy
78e5e6d626 NewProxy no work
NewProxy no work

Former-commit-id: 01923793abb91d5c9ce661136f5f02e1ba0a3b2c
2019-07-16 13:37:53 +08:00
Gerasimos (Makis) Maropoulos
1c2472c53f update the online visitors and vuejs +iris mvc todo app (this gave me some ideas to make the api a bit easier)
Former-commit-id: 8c84486a22505b7137669bde52383d2564a6b382
2019-07-15 18:45:22 +03:00
Gerasimos (Makis) Maropoulos
55bdb44e26 remove experimental-handlers examples, users should visit github.com/iris-contrib/middleware instead, let's not have duplications
Former-commit-id: 72754683d1bcd4325b5fcd9f57c6cb87f1d7337d
2019-07-15 16:03:19 +03:00
Gerasimos (Makis) Maropoulos
2725267aa4 update mongodb official driver tutorial to its latest API (requires an options.ClientOptions instead of a simple url to connect to the server/host
Former-commit-id: 86ad73198016ce9d4b8c89ddb7191e932f759628
2019-07-15 08:15:06 +03:00
Gerasimos (Makis) Maropoulos
137c41344d Updated all dependencies one by one to go.mod - Backup and remove the vendor folder entirely and update most of the examples - next commit will contain the rest of the updated
Former-commit-id: 2791c50256c0f00d6e08a408e5cb009262c49588
2019-07-15 07:49:04 +03:00
Gerasimos (Makis) Maropoulos
c2c748067c respect the WithoutBodyConsumptionOnUnmarshal on 'ctx.ReadForm' and 'ctx.FormValues' and on the new 'ctx.GetBody' method helper as requested at: #1297
Former-commit-id: c6a52681c940681ac85a330465d38a078186a8a1
2019-07-12 20:52:39 +03:00
Gerasimos (Makis) Maropoulos
f8d19b3ed2 add HandleMany to controller's Before/AfterActivation feature as requested at: https://github.com/kataras/iris/issues/1292
Former-commit-id: c021f49522a214ddc3978a1c8f5e8d32f029eb2d
2019-07-11 15:07:39 +03:00
Gerasimos (Makis) Maropoulos
33dfb42d73 add the new neffos StackExchange feature to the type aliases and shortcuts of the websocket subpackage and auto-enable debug mode on websocket MVC application when iris logger's level is set to debug
Former-commit-id: 4d8cb79d01a4172fc1ed7a9b626da0228d902b3c
2019-07-11 12:59:11 +03:00
Gerasimos (Makis) Maropoulos
82d645e3cb add running with http/3 quic protocol as server listener to examples, rel to: https://github.com/kataras/iris/issues/1295
Former-commit-id: 4c970c8143a663e5b879c8aeb6614504432dfe8d
2019-07-09 15:22:48 +03:00
Gerasimos (Makis) Maropoulos
29deac3270 Remove the two day old crypto package, let's not confuse users between that and JWT - keep only JWT. And also, Drop older go versions support, only go1.12 and above which comes with a lot of performance improvements and security patches
Former-commit-id: a1d791ce45b87ecc440ed9c5aee5d5d204763f0d
2019-07-09 12:42:27 +03:00
Gerasimos (Makis) Maropoulos
2567ed22be minor example fixes
Former-commit-id: 163652ddfad00300590fbe6798cf9761a8e4b5e6
2019-07-09 12:25:06 +03:00
Gerasimos (Makis) Maropoulos
450f20902d MVC improvements: add HandleWebsocket that now registers events automatically based on the struct's methods(!) and fix a bug when more than one value of the same type is registered to a static field of a controller
Former-commit-id: e369d1426ac1a6b58314930a18362670317da3c1
2019-07-09 12:16:19 +03:00
Gerasimos (Makis) Maropoulos
85666da682 improve the example and add jwt authentication on handshake or server connect event or any other event
as requested a long time ago at: https://github.com/kataras/iris/issues/1229#issuecomment-484791181


Former-commit-id: 17259069bc5decc022bf3b706b0654c8f473d3c8
2019-07-06 06:27:28 +03:00
Gerasimos (Makis) Maropoulos
2576b3da34 add support for iris-specific form of generating connection IDs as requested at: https://github.com/kataras/neffos/issues/1#issuecomment-508689819
Former-commit-id: 0994b63373ebe2b5383a28f042aa2133061cbd18
2019-07-05 16:22:20 +03:00
Gerasimos (Makis) Maropoulos
9dbb300d9b implement the Iris Crypto Library for Request Authentication and Verification. With Examples and Tests.
Relative to this one as well: https://github.com/kataras/iris/issues/1200


Former-commit-id: 3a29e7398b7fdeb9b48a118b742d419d5681d56b
2019-07-02 19:19:43 +03:00
Gerasimos (Makis) Maropoulos
35389c6ef8 update websocket examples - keep neffos and use the iris/websocket as helper only
Former-commit-id: c34b916e186286cd0de6d694d8bdb4f9390121a2
2019-07-01 18:52:17 +03:00
Gerasimos (Makis) Maropoulos
33028f900d update the nantive-messages(only) example to the latest websocket (minimum changes, the idea is the same) and misc
Former-commit-id: 9598319bc13e8a383114c37f4da84f337ab47b22
2019-06-25 22:10:10 +03:00
Gerasimos (Makis) Maropoulos
076d9121f1 Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
2019-06-22 21:34:19 +03:00
Gerasimos (Makis) Maropoulos
b71d4032e6 replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
2019-06-22 14:46:20 +03:00
Gerasimos (Makis) Maropoulos
d0104defa8 create the new FileServer and HandleDir, deprecate the rest APIBuilder/Party static methods and more
relative: https://github.com/kataras/iris/issues/1283 and removing pongo2 from vendor: https://github.com/kataras/iris/issues/1284

Former-commit-id: 3ec57b349f99faca2b8e36d9f7252db0b6ea080d
2019-06-21 19:43:25 +03:00
Gerasimos (Makis) Maropoulos
164f24dec4 add more websocket helpers from neffos project
Former-commit-id: fcb9ec46849fd745fe0f62524d9b85067a334048
2019-06-15 14:07:35 +03:00
Gerasimos (Makis) Maropoulos
272566950d _examples/websocket/basic: add a nodejs client and provide a README.md on how to run the websocket clients and the server
Former-commit-id: a98a80996d7d95fa947e72c71803407682229fa7
2019-06-13 12:15:01 +03:00
XieWei
8587f84e25 feat: gorm example
Former-commit-id: 56495ea07f26efa1a98729046ad678ba65c3a92c
2019-06-09 01:31:38 +08:00
Gerasimos (Makis) Maropoulos
7af5f139e0 fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03:00
Gerasimos (Makis) Maropoulos
9c92952a40 remove the 3rd party socket io example because its API has a breaking-change now and some features are not reproducable to that
Former-commit-id: 8d89947be6a3ee6942d596c15f346c3ed6cf6728
2019-06-07 20:45:00 +03:00
Gerasimos (Makis) Maropoulos
2495be17f6 add example line on how to get the upgraded conn's iris.Context with websocket.GetContext.
Former-commit-id: 7d9cae97e2736d59dccb60c13b0cc5b6ca36a9fd
2019-06-02 18:27:51 +03:00
Gerasimos (Makis) Maropoulos
04bc21dd3b Add the new websocket package (which is just a helper for kataras/neffos) and an example for go server, client, browser client and nodejs client. Add a .fossa.yml and the generated NOTICE file for 3rd-party libs. Update go.mod, go.sum. Update the vendor folder for pongo2 to its latest master as well
Former-commit-id: 89c05079415977d65e7328a1eb8a1c602d76f78a
2019-06-02 17:49:45 +03:00
Gerasimos (Makis) Maropoulos
adb6fd764a extract the Delim for redis sessiondb as requested at https://github.com/kataras/iris/issues/1256 and add a mvc/regexp example and some other trivial changes
Former-commit-id: f9e09320bfe07ae10ac74f54a78272cf21d21cc7
2019-05-30 10:48:07 +03:00
Gerasimos (Makis) Maropoulos
7df7f0fea2 clean up the mvc error handler example
Former-commit-id: 30e42fe0a6c39909739ec6423d75a2be0fe4f1f6
2019-04-16 18:08:03 +03:00
Gerasimos (Makis) Maropoulos
0d4d2bd3fa implement mvc HandleError as requested at #1244
Former-commit-id: 58a69f9cffe67c3aa1bab5d9425c5df65e2367ed
2019-04-16 18:01:48 +03:00
Gerasimos (Makis) Maropoulos
444a4a0363 remove websocket's connection's temp storage, as it was deprecated for quite long time (we have access to Context().Values() now)
Former-commit-id: 26dfa47c374646590831d62fa1fc1dc02d8705fc
2019-02-23 18:35:29 +02:00
Gerasimos (Makis) Maropoulos
ddec78af0a add Context.ResponseWriter.IsHijacked to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
bda36145e5 some cleanup, and remove the test 'testwebocket2' package at all; A lower-level fast websocket impl based on gobwas/ws will be published on a different repo, it is a WIP
Former-commit-id: b680974c593196ce20865ed12778929ced6afea1
2019-02-22 21:24:10 +02:00
Gerasimos (Makis) Maropoulos
c477251d1f improve client test, I think we are OK, both gorilla(websocket) and ws(websocket2) have the same API, it's time to combine them but first let's give a lower level of api available for users if they want to manage the routines by theirselves (i.e on unix they can use netpolls manually)
Former-commit-id: 3209a7490939bce913732c1375190b0771ba63ae
2019-02-19 22:49:16 +02:00
Gerasimos (Makis) Maropoulos
65c1fbf7f2 websocket: from 1k to 100k on a simple raspeberry pi 3 model b by using a bit lower level of the new ws lib api and restore the previous sync.Map for server's live connections, relative: https://github.com/kataras/iris/issues/1178
Former-commit-id: 40da148afb66a42d47285efce324269d66ed3b0e
2019-02-18 04:42:57 +02:00
Gerasimos (Makis) Maropoulos
701267e034 add a new websocket2 package without breaking changes to the iris API. It implements the gobwas/ws library (it works but need fixes on determinate closing connections) as suggested at: https://github.com/kataras/iris/issues/1178
Former-commit-id: be5ee623b7d030bd9e03a1a2f320ead975ef2ba8
2019-02-17 04:39:41 +02:00
Gerasimos (Makis) Maropoulos
07994adabb add websocket client stress test, passed and update the vendors (this commit fixes the https://github.com/kataras/iris/issues/1178 and https://github.com/kataras/iris/issues/1173)
Former-commit-id: 74ccd8f4bf60a71f1eb0e34149a6f19de95a9148
2019-02-14 03:28:41 +02:00
Gerasimos (Makis) Maropoulos
946c100f7d use the same connection structure for both client and server-side connections interfaces, the 'Connection' interface could be changed to 'ServerConn' but this would produce breaking naming change to the iris users, so keep it as it's.
Former-commit-id: 3440871b368709e33d2d2a5080c66f7ad9338970
2019-02-10 17:16:43 +02:00
Gerasimos (Makis) Maropoulos
280872fd59 add iris websocket client side for Go and a simple chat example
Former-commit-id: af1c555b6b092a3d0484fee2e200fd8767d7239e
2019-02-09 04:28:00 +02:00
Gerasimos (Makis) Maropoulos
7278bcd537 minor fmt
Former-commit-id: d22d8c4a715326901cd12368268eb3fb3e087a5f
2019-02-02 04:25:04 +02:00
Gerasimos (Makis) Maropoulos
4284739151 add tutorial for the official mongodb go driver
Former-commit-id: 8353dd101c37c223bba404403f9f8fa2d042fede
2019-01-28 05:36:44 +02:00
Gerasimos (Makis) Maropoulos
680b5a0923 websocket: replace sync.Map with custom map[string]*connection. Add translate template function example. Fix ctx.HandlerName() does not return the end-dev-defined current route's name, this will give better warnings when using MVC in a wrong way
Former-commit-id: 38fda8a20da9bc7665cdd209b7b367c1337dbd94
2019-01-25 23:47:31 +02:00
Gerasimos (Makis) Maropoulos
d451335aa2 gofmt
Former-commit-id: 75992b3aeae2228a7a7f0e698ce78b2f323cc33a
2019-01-20 00:00:54 +02:00
Gerasimos (Makis) Maropoulos
3fcc70b891 init of v11.2.0: add context#FullRequestURI and NewConditionalHandler
As requested at: https://github.com/kataras/iris/issues/1167 and https://github.com/kataras/iris/issues/1170


Former-commit-id: 781c92f444b3e362011be886b32cf88f89998589
2019-01-19 23:33:33 +02:00
Gerasimos (Makis) Maropoulos
caac0480ba context#ReadForm can skip unkown fields by iris/context.IsErrPath(err), fixes: https://github.com/kataras/iris/issues/1157
Former-commit-id: 5cc8e5a9d58071591154e988262b547653c34e36
2019-01-04 11:40:55 +02:00
Gerasimos (Makis) Maropoulos
8b74e3343d fix https://github.com/kataras/iris/issues/1164
Former-commit-id: 533b277c6a33d44da48df2ad9ca2b5ebb962bc96
2019-01-04 11:16:40 +02:00
fduxiao
b01aa84551 Translate _examples/README.md into Chinese
Former-commit-id: bee3e04b8796ebede5b3cee37c2d8a65fc8d2860
2018-12-18 18:06:12 +08:00
Gerasimos (Makis) Maropoulos
8b85b602df fix https://github.com/kataras/iris/issues/1141 and https://github.com/kataras/iris/issues/1142
Former-commit-id: d8d73b3e1b713af9bf7b4712121324079ede6a41
2018-11-28 23:20:08 +02:00
Gerasimos (Makis) Maropoulos
b8addac888 add versioning example
Former-commit-id: 54c903135d1c2ba1838b47fa419433dbb010c317
2018-11-18 03:06:59 +02:00
Gerasimos (Makis) Maropoulos
d766bf9f65 fix https://github.com/kataras/iris/pull/1128 for https://github.com/kataras/iris/issues/1132
Former-commit-id: fd3ef788ff4696e8a7f3d0d2cf11be4532abdf3f
2018-11-10 23:46:01 +02:00
Gerasimos (Makis) Maropoulos
7608873e70 versioning API: initialize support for grouping
Former-commit-id: 36cf8cd79801e8556f3c7b560f3bd759d9770d67
2018-11-10 23:29:24 +02:00
Gerasimos (Makis) Maropoulos
e08d0b4be6 Update to version 11.0.4. Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-09-november-2018--v1104
Former-commit-id: 2c2c32afe31fe94543d145ab8c8475d7b4392ff1
2018-11-09 03:03:48 +02:00
Gerasimos (Makis) Maropoulos
22782bbefe examples: update the cors example to be easier for beginners
And update the pug view engine's vendor jade template engine to yesterday version 1 (tested and worked) to fix https://github.com/kataras/iris/issues/1125


Former-commit-id: 0ea7a8dd97ab13e5ecf984c379234cc671f5d84e
2018-11-06 04:06:50 +02:00
Gerasimos (Makis) Maropoulos
d6964acfcd Merge pull request #1117 from chenPengXu/master
add part function in html.go and examples

Former-commit-id: bf22aac2abd6cf605abb1673ec346301c6c630c2
2018-10-30 01:05:33 +02:00
Gerasimos (Makis) Maropoulos
be32418bc1 Update to version 11.0.1. Feature request implemented: https://github.com/kataras/iris/issues/1113
Former-commit-id: 0ce38dbacc2458fe327fa4401fdde1e69c8aacb0
2018-10-28 01:19:22 +03:00
chenPengXu
20fa06b46b modify
Former-commit-id: 3cae751d13b1c97dae0db7802b42b462f7c89fdb
2018-10-27 20:53:24 +08:00
chenPengXu
b5a4cf901d add template_html_5 for fund part in html.go
Former-commit-id: f2143a7aded3c026da5eb0755630e7dd2cb0f874
2018-10-26 14:15:29 +08:00
Gerasimos (Makis) Maropoulos
3962710d3d Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Gerasimos (Makis) Maropoulos
a1d80ce4b6 typo fix: internally
Former-commit-id: c9bc56aaf2ee4c88a8827dd1a1731f2788643a28
2018-10-15 11:58:57 +03:00
Gerasimos (Makis) Maropoulos
f6436f2af4 https://github.com/kataras/iris/issues/1061
Former-commit-id: 4324e81ea94ef917ce39005b6038a6819bb63258
2018-08-14 16:29:04 +03:00
Gerasimos (Makis) Maropoulos
20c0bbe9ba Release stable version 10.7 - HISTORY.md#sat-11-august-2018--v1070
I want to thank you once again for the unwavering support and trust you have shown me


Former-commit-id: fa0be6bf5ca2f04e03e452f8cca75a0a7be0b487
2018-08-11 23:58:49 +03:00
Matthew Cale
5dafdecc54 Fixed Some Typos
Not sure if this sentence is right 

`// iris provides some basic middleware, most for your learning curve.`
Maybe you meant something like
` // iris provides some basic middleware to help newcomers understand the concepts.`
But I wasn't sure so I left the sentence alone (exepct for the typo lol)

Former-commit-id: e2f2be25d57c84e0deb8a2c7a41fc822aa38118c
2018-08-10 16:40:44 -05:00
Gerasimos (Makis) Maropoulos
9f464310e3 Add one more example for dependency injection (HTTP Request-based) using our hero
Former-commit-id: ff18371d254caf2d1932d6522b1ebc1f8032708f
2018-08-10 00:23:17 +03:00
Gerasimos (Makis) Maropoulos
51e1b44c72 websocket: use of sync.Map
Former-commit-id: 8ecb1e6f70380195ce916d4dfc3fe8d41c851995
2018-08-08 13:22:00 +03:00
Gerasimos (Makis) Maropoulos
55e4cf038e add example for hero *sessions.Session dependency which is used on an index route outside of the main package, it is as easy as it shown. Added mostly after the issue: https://github.com/kataras/iris/issues/1057 -- have fun
Former-commit-id: 93338d0e03d6be885edf783c09a2c181568e9ec5
2018-08-07 12:43:51 +03:00
Gerasimos (Makis) Maropoulos
e5f6bce86f examples: writing an API for the Apache Kafka: add a root handler for routes documentation to make navigation easier and add some other methods that may find them useful for request state and routes description
Former-commit-id: 3775aab2386051b23e127ccc9e3a6accdfdee6d0
2018-08-05 13:51:05 +03:00
Gerasimos (Makis) Maropoulos
2b2492abfa Add a simple 'Context#GetReferrer', as requested by the People: adapt the goreferrer external package
Former-commit-id: 8f1dce93dd5a2449d806f0b28baf5a8c860193b5
2018-08-04 15:19:17 +03:00
Gerasimos (Makis) Maropoulos
8b5c106d1c NEW TUTORIAL: Writing an API for Apache Kafka with Iris: _examples/tutorial/api-for-apache-kafka. Hope you will enjoy it as I did the whole night:)
Former-commit-id: c88f5bbbe171e386c855b91be265b972caa3c1a8
2018-08-04 05:50:22 +03:00
Gerasimos (Makis) Maropoulos
f6160c61bd add some of the _examples to the README, nothing crazy here
Former-commit-id: ec6e4dc3e986e476da99f840bc897324d03ba0d0
2018-08-03 13:45:05 +03:00
Gerasimos (Makis) Maropoulos
21e90ac4c5 examples: improve the server-sent events example with a table and javascript use...
Former-commit-id: 20a6dd0e62679b20fefb2f0a7819c158247a3ca1
2018-08-03 01:59:19 +03:00
Gerasimos (Makis) Maropoulos
5d9ded37c4 Add 'context.OnConnectionClose(callbackFn) bool' and 'context.OnClose(callbackFn)' and give a use case example. More on this path later on, stay tuned.
Former-commit-id: dc6580f072d076b8cb204a681e45905210981153
2018-08-02 17:46:35 +03:00
Gerasimos (Makis) Maropoulos
d98da25ffb add a README note about the known issues for Go inside code editors/IDEs
Former-commit-id: a4be78e746f5675291bab5a1b3e62eaf42cbd98c
2018-08-02 01:58:46 +03:00
Gerasimos (Makis) Maropoulos
2b72aadb15 add server side events via broker example (based on external resource but it is fairly good for a simple SSE showcase)
Former-commit-id: 926c2a88bf1c44354a99654bc85e267b940723b8
2018-07-31 03:12:16 +03:00
Gerasimos (Makis) Maropoulos
247a558394 Add example for struct validation(3rd-party) through json request body binding
Former-commit-id: 78bbbe068f219e5a264951c900b77cb9b70f2079
2018-07-24 04:33:53 +03:00
Gerasimos (Makis) Maropoulos
7337396e3c README.md: example change
Former-commit-id: 4a66a689f86e5cd93ec9001e5ca18b4f5d3923be
2018-07-23 15:58:55 +03:00
Gerasimos (Makis) Maropoulos
f7c0cbe5cd update deps and move one vendor to our organisation for making a new branch in order to solve this: https://github.com/kataras/iris/issues/1040, although it's not ours problem...
Former-commit-id: 6013525d2aabc35461bf24871e3b36ca91004fb9
2018-07-15 16:09:03 +03:00
Gerasimos (Makis) Maropoulos
cd5109ae0e Iris + WebAssemply = = 💓
Former-commit-id: 44f08f112cfba8006d2a6fe34e32b24e5c246856
2018-07-09 09:13:36 +03:00
Gerasimos (Makis) Maropoulos
2acb6e9385 session examples: add the 'AllowReclaim: true' session.Config field to true, help users like https://github.com/kataras/iris/issues/1031\#issuecomment-399894693
Former-commit-id: 2ab7e56a4fda380fb52a8912a328797ba332f2c8
2018-06-25 20:21:52 +03:00
Gerasimos Maropoulos
f83e125d7f fix https://github.com/kataras/iris/issues/1020, redis database stores the int as float64, so make that type assertion on GetInt as well
Former-commit-id: d29abdfe3a39fa1e046acbc5d118421a153d9c04
2018-06-03 02:47:48 +03:00
Gerasimos Maropoulos
b4856d542d Cookies: Ability to set custom cookie encoders to encode the cookie's value before sent by ctx.SetCookie and ctx.SetCookieKV and cookie decoders to decode the cookie's value when retrieving from ctx.GetCookie. That was the second and final part relative to a community's question at: https://github.com/kataras/iris/issues/1018
Former-commit-id: 53b6810076c8db8646df335d57a30c78b23cd9b8
2018-06-02 16:35:18 +03:00
Gerasimos Maropoulos
fcff62d5b4 Some minor but helpful additions, like CookieOption. Relative: https://github.com/kataras/iris/issues/1018. Simple cookies example added too. Cookie encoding (side by side with the already session's cookie id encoding) and version upgrade will come tomorrow with a new HISTORY.md entry as well, stay tuned!
Former-commit-id: d14181fac998d32d77690b1b3e42b6c7c72f1ace
2018-06-02 07:28:40 +03:00
Gerasimos Maropoulos
f84248cb4e middleware/logger: new configuration field, defaults to false: Query bool, if true prints the full path, including the URL query as requested at https://github.com/kataras/iris/issues/1017
Former-commit-id: 03c8fc523a8ba955dae43e4c7e9498fc3d86a1c8
2018-05-31 01:39:23 +03:00
Schatzman
008dfe869c Fix typo
"Procceed" -> "Proceed"

Former-commit-id: 7f9b983d4281bf3d8492e2722e327e551ed7e716
2018-05-26 14:23:19 -06:00
Gerasimos Maropoulos
beef97fd5d Update vendor for Pug (Jade) Parser and add Iris + Pug examples in the _examples/view folder, relative to https://github.com/kataras/iris/issues/1003
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
2018-05-26 22:49:48 +03:00
Gerasimos Maropoulos
94b93484b5 Update to version 10.6.5: 1 New Feature And Indonesia Translation | Read HISTORY.md
Former-commit-id: 4788e36e52f6b40c7e15120e0675c097eabf0f0d
2018-05-21 07:40:43 +03:00
Gerasimos Maropoulos
4eeffd07c7 Update the _examples/http_request/upload-file to fill the gap, relative discussion: https://github.com/kataras/iris/issues/979
Former-commit-id: a113e8815a6a2821a80ac424f52302528a6e71b5
2018-04-28 14:48:09 +03:00
Gerasimos Maropoulos
3c6d1f2fa3 _examples/README: add bolt session database example link
Former-commit-id: 373f25cc016fbdad84e208123c024999d35a47e4
2018-04-26 08:07:09 +03:00
Gerasimos Maropoulos
b22151d4b7 Update to version 10.6.1 | Re-implement the BoltDB as built'n session database and more. Please read the HISTORY file for further details
Former-commit-id: fa68a914bec5fe4f595bdeaea84ecab6374ba643
2018-04-25 05:29:19 +03:00
Gerasimos Maropoulos
b62080c4bb Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy) as requested by almost everyone. https://github.com/kataras/iris/issues/969
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Gerasimos (Makis) Maropoulos
f113872b7d A better http_responsewriter/stream-writer example, see SSE example for server-side events
Former-commit-id: 635cadf6bac376c2b7b805523ab8d9d6472a5502
2018-04-21 20:46:16 +03:00
Gerasimos Maropoulos
cb69df2ccf Add a very simple usage-example for sending server side events
Former-commit-id: 6df287d915a772bcae3f2f98445676aba39a2bc6
2018-04-10 21:01:24 +03:00
Gerasimos Maropoulos
989cb3f045 update vendor
Former-commit-id: 8e7fca843e404d34fec071415191657ea554dd05
2018-04-03 13:07:23 +03:00
Gerasimos (Makis) Maropoulos
e9e2998538 Merge pull request #950 from Zeno-Code/master
Examples README_ZH.md

Former-commit-id: 3e1db0582142a6240921cfb303d31e0a45e96b87
2018-04-02 02:59:57 +03:00
Zeno-Code
4a3e97a9bd Update README_ZH.md
Former-commit-id: 8865a9b486dc56821f3505b25cc8764d641c21bf
2018-03-31 14:20:29 +08:00
Zeno-Code
b7bf311058 Update README_ZH.md
Former-commit-id: 41af389366ad45114473df779111a8f698e5cfda
2018-03-30 19:18:18 +08:00
Zeno-Code
515fd82873 Update README_ZH.md
Former-commit-id: a0c4b2d627621bbd060bd861debcafa21c223710
2018-03-30 00:15:58 +08:00
Zeno-Code
61406dcbae Update README_ZH.md
Former-commit-id: b2392ff60de3fbf5d167cd2f16051ee6dd382948
2018-03-29 23:24:30 +08:00
Zeno-Code
37b5875ab0 Update README_ZH.md
Former-commit-id: 981f0266b25e92cb38d767288db3bed112d70399
2018-03-29 03:31:49 +08:00
Gerasimos (Makis) Maropoulos
502b4654d4 fix the bug of lost argument in log function caused by PR: #946
Former-commit-id: 80fc2b2ff2455c328bb49b9ddcee519cf8138be9
2018-03-28 17:16:29 +03:00
Chengyumeng
addf984ed3 fix the bug of lost argument in log function
Former-commit-id: 566a0c8bff8e77d5d12c1b4d10b3c69be0a962ba
2018-03-28 20:39:56 +08:00
Zeno-Code
2b0280b646 Update README.md
Former-commit-id: 86b6b483349c30211234626b91723a8f35d6a12f
2018-03-28 12:23:06 +08:00
Zeno-Code
58c9de3ab7 Update README_ZH.md
Former-commit-id: 61d8df659e22d518de09d4a35cdf93277b5bc3d6
2018-03-28 12:22:29 +08:00
Zeno-Code
a79496de6d Create README_ZH.md
Former-commit-id: 35656f423a935b9fe4c0f639bdcac591b98c4667
2018-03-28 12:21:17 +08:00
Zeno-Code
fbb3bb89f0 Update README.md
Former-commit-id: ea1325f29246fa90219344434f5bc7e9317e62db
2018-03-28 11:45:05 +08:00
Gerasimos (Makis) Maropoulos
b579e89aaa add more information for access log merge pull request #946 from Chengyumeng/feature/logger
Former-commit-id: 91fbc9420c52287231a284aa8092764c7273e987
2018-03-27 10:06:29 +03:00
Gerasimos Maropoulos
fc0f27c4fc Do not create the global configuration in homedir by-default, as, correctly, requested on chat. Use iris.WithGlobalConfiguration with a pre-defined iris.yml file on your home directory, existing users will not have any issues, new one will have to create the file before
Former-commit-id: 033f7e96693b13f87b44b445ed166328fea6e0a0
2018-03-27 09:59:29 +03:00
Chengyumeng
edc24d529f add more information for access log
Former-commit-id: 60517837c5bfdb2d879909c4b413e83cbd10321a
2018-03-26 15:50:33 +08:00
Gerasimos Maropoulos
66d367b255 Update to version 10.5.0 | Read HISTORY.md for more
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
2018-03-24 10:39:44 +02:00
Stefan Pahlplatz
5aba0d0ff4 Fixed a typo
Former-commit-id: 4d3a281839fe2dc72d1cb67af0f6d3b04782968e
2018-03-22 12:02:22 +01:00
Gerasimos Maropoulos
89022c7051 add some tests for the content type for the embedding files and gziped embedded files
Former-commit-id: b7fe470f33efcdf70df3e41ad880bbd4704cbb4a
2018-03-15 23:09:07 +02:00
Gerasimos Maropoulos
56215eeb71 Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md
Former-commit-id: 4f8b8c95c1b107a9be3b1ef6835ece949a75ceb6
2018-03-14 07:17:35 +02:00
Gerasimos Maropoulos
4993918a12 remove the complicated fallback handlers, that didn't work and not approve the coblexity addition of the https://github.com/kataras/iris/pull/919, RouteExists accepts first argument the Context, add new AllowMethods per party and fix cors by 048e2be034 https://github.com/kataras/iris/issues/922, rel: https://github.com/iris-contrib/middleware/issues/36, https://github.com/iris-contrib/middleware/issues/34, https://github.com/iris-contrib/middleware/issues/32, https://github.com/iris-contrib/middleware/issues/30, https://github.com/kataras/iris/pull/909
Former-commit-id: 5576c44b64014fb00dd79e618b815b5f52b705e4
2018-03-10 14:22:56 +02:00
Gerasimos Maropoulos
83c4b7f52d add examples for read using custom decoder per type, read using custom decoder via iris#UnmarshalerFunc and to complete it add an example for the context#ReadXML.
Former-commit-id: 536b1780f12d0b9d9ce9aa976a0f95f18634ec2d
2018-03-08 05:21:16 +02:00
Gerasimos Maropoulos
1a4803307d Add one more example for custom router macro functions, relative to https://github.com/kataras/iris/issues/918
Former-commit-id: 457c1a94dc8d93e614e9da70e1ec2482fe0c5765
2018-03-05 20:09:30 +02:00
Gerasimos Maropoulos
b20933e0bb upgrade go-bindata link to the most maintainable one
Former-commit-id: 58d5253b3332acef480d36f0cf716f2ad6b1c09e
2018-02-25 12:14:49 +02:00
Gerasimos (Makis) Maropoulos
d7beb9a752 Add a missing call for fallbackHandler in _examples/routing/fallback-handlers/main.go by @ZaniaDeveloper via PR: #911
Former-commit-id: 94ae5849e16538a4bc7f906c52ed7603c7ae01f6
2018-02-23 15:20:53 +02:00
ZaniaDevelopper
abb10e9cbf Add a missing call for fallbackHandler
Former-commit-id: a1ce94b39d326657cdbce34276477c34752f0000
2018-02-23 09:24:35 +03:00
Gerasimos Maropoulos
a1232c9a9a _examples: replace DELETE string with iris.MethodDelete, for important changes see: https://github.com/kataras/iris/pull/909 and 6de64d517e [formerly 35dd2ab80b69a5bea6f35f58e636bc11229d9921]
Former-commit-id: d0f5785aff289b8c140e4f253eb555135e79603d
2018-02-23 04:25:12 +02:00
Gerasimos Maropoulos
6de64d517e New: context#NextOr && context#NextOrNotFound and some performance improvements on the awesome https://github.com/kataras/iris/pull/909 pushed a while ago
Former-commit-id: 35dd2ab80b69a5bea6f35f58e636bc11229d9921
2018-02-23 04:06:05 +02:00
ZaniaDevelopper
1196680004 Add comment in example
Former-commit-id: 2b9d7a569ed4c5d78cd5dd49865df1cf381619fc
2018-02-21 15:19:09 +03:00
ZaniaDevelopper
7a29519c5a Fixes bad copy/paste
Former-commit-id: 437b60bc6b37d8a755198fb97809c61b9c18004e
2018-02-21 14:48:09 +03:00
ZaniaDevelopper
643358d7cb Modification
- Add configurator for Party
- Modification for CORS middleware example

Former-commit-id: f01c01d4eac41666a92890461851909a6ade018b
2018-02-21 14:22:17 +03:00
Frédéric Meyer
72b096e156 Add fallback handlers
Former-commit-id: f7e9bd17076a10e1ed1702780d7ce9e89f00b592
2018-02-21 12:27:01 +03:00
Frédéric Meyer
66209cae4f Save
Former-commit-id: 592e9cddf3511fc08e87f19ad39fdaac479b453f
2018-02-21 08:18:53 +03:00
Gerasimos (Makis) Maropoulos
7fd8baea75 README.md: make backers visible on the top of the page, replaced the prev api to the https://iris-go.com/backers.svg in order this to happens
Former-commit-id: 093f11d05fe9556c79de2cb2886e5d0569f27336
2018-02-12 04:04:46 +02:00
Gerasimos (Makis) Maropoulos
9cdae4ee67 Update to version 10.2.0. Read: https://github.com/kataras/iris/blob/master/HISTORY.md#th-08-february-2018--v1020
Former-commit-id: 2eb94ec0f565b80790784ac55af024429384b3d3
2018-02-08 14:04:39 +02:00
Gerasimos (Makis) Maropoulos
5d62b5d428 replace boltdb/bolt to coreos/bbolt for sessions/sessiondb/boltdb
Former-commit-id: 0451425be0550e6a6f0c430e036452b60e393789
2018-02-07 01:06:42 +02:00
Gerasimos (Makis) Maropoulos
711e48d9ab fix https://github.com/kataras/iris/issues/897
Former-commit-id: 6f94a79d9ce3ac9b2b05d1e2637059996a02df1d
2018-02-03 18:31:01 +02:00
Gerasimos (Makis) Maropoulos
019911237c add context#StatusCodeNotSuccessful for customize even the most customized clients that are not compatible with the standards and fix the SPA if static file serve handlers are passed as its AssetHandler as reported at the chat.iris-go.com
Former-commit-id: ccd0815a09b9305bfbeaad7b46559dd86f34f20b
2018-01-31 02:35:22 +02:00
Gerasimos (Makis) Maropoulos
e38ea65dc7 fix example comment on routing/dynamic-path/main.go#L101
Former-commit-id: affb9b646e83ab9087d4c84aac8c12e11468257b
2018-01-30 21:16:54 +02:00
Gerasimos (Makis) Maropoulos
687477f210 fix comment on csrf example
Former-commit-id: c5c001cbc5381fb169429f132ea18c4fc7c76a42
2018-01-28 15:43:25 +02:00
Gerasimos (Makis) Maropoulos
969c2e87d4 add Cache304 as an alternative to the server-side kataras/iris/cache middleware - it can perform better with less server overheat but it comes with a cost of 304 instead of 200 so custom clients must make that check
Former-commit-id: b0ba68c528c870fe060e2825c35689771a1d3680
2018-01-25 16:19:45 +02:00
Gerasimos (Makis) Maropoulos
befb1f0c08 some major improvements to the (server-side) cache middleware and an example of a client-side responsibility cache
Former-commit-id: 93d3a7a6f163c6d49f315f86d10e63f7b1b1d93a
2018-01-25 15:09:24 +02:00
Gerasimos (Makis) Maropoulos
981322cfd2 no need to default the Configuration.RemoteAddrHeaders to a list of 'dissalowed' header names, the ctx.RemoteAddr() made unnecessary checks if no X-header was passed, even if they defaulted to false, this will not give a crazy improvement but it's a good practise
Former-commit-id: ba9ed1475a76489df16cac0ed87275b5604f2ad0
2018-01-25 06:31:05 +02:00
Gerasimos (Makis) Maropoulos
bf13f7648a add vscode extension link and badge | Some internal improvements (not completed yet)
Former-commit-id: 9bc94e90a2780ee81f8188509d98063fb3f2924b
2018-01-25 03:16:49 +02:00
Gerasimos (Makis) Maropoulos
243439af9d Corrected spelling from simmilate to simulate by @HintikkaKimmo via PR #883
corrected spelling for example docs

Former-commit-id: 79c2cd4f7f0c6b5396920bf13bd7da27fd51d457
2018-01-22 19:09:04 +02:00
Gerasimos (Makis) Maropoulos
4b4dbb04af add an app.View example for parsing and writing templates outside of the HTTP scope(context.View)
Former-commit-id: e65d8ece521c778dedf45cf2f522383c26b9901b
2018-01-22 15:42:19 +02:00
Kimmo Hintikka
d4b09987c4 corrected spelling for example docs
Corrected spelling from simmilate to simulate

Former-commit-id: f672aa340fd53119defa89da0d93757dc0b0152b
2018-01-22 11:04:33 +00:00
Gerasimos (Makis) Maropoulos
25918427bc support multi-level subdomains redirect, see previous commit for the SubdomainRedirect fast solution
Former-commit-id: bc5749e46d1ae65f9d17063f3d8f2ea72510a9d8
2018-01-20 14:54:04 +02:00
Gerasimos (Makis) Maropoulos
e176ff7b0c NEW: Application#SubdomainRedirect. Example: https://github.com/kataras/iris/blob/master/_examples/subdomains/redirect/main.go
Former-commit-id: d8dd7c426dc9f14c870f103fef703595a2915612
2018-01-20 05:17:31 +02:00
Gerasimos (Makis) Maropoulos
742ad6db72 upstream update for crypto/acme relative to iris.AutoTLS
Former-commit-id: 20d22c163f8063673536127caec4eecfb3561226
2018-01-15 12:34:35 +02:00
Gerasimos (Makis) Maropoulos
a19e570c8a Update to version 10.0.1 - read more at: https://github.com/kataras/iris/blob/master/HISTORY.md#mo-15-jenuary-2018--v1001
Former-commit-id: 292d155c877ba3f9d1210db54c3df3fedd1d0c1c
2018-01-15 00:54:01 +02:00
Gerasimos (Makis) Maropoulos
ad9c76adb3 nothing tremendous here
Former-commit-id: 34e7c423d0b777b2d8c60e74c8aad0efc13bd7fc
2018-01-09 04:37:23 +02:00
Gerasimos (Makis) Maropoulos
1690cc9334 add Greek language side by side with Chinese and Russian
Former-commit-id: 4a44ae6f27d94deddd89afda6b1d83218a0ae309
2018-01-05 07:57:04 +02:00
Gerasimos (Makis) Maropoulos
bcc3e9920a fix https://github.com/kataras/iris/issues/859
Former-commit-id: 55ce0b2f911a3088d28d4393b68ba9af97f79f94
2018-01-04 15:35:24 +02:00
Gerasimos (Makis) Maropoulos
10f440b9db add a new article about Iris and Vue.js
Former-commit-id: c7406cbd961d44016628c55083f554bba1f5745e
2018-01-01 22:14:52 +02:00
Gerasimos (Makis) Maropoulos
b69aebb14a add a simple example about registering middleware(s) to an mvc Application
Former-commit-id: 59da5e241e1488b6b39d2ec0e72c45ad2cc7d901
2018-01-01 22:08:14 +02:00
Gerasimos (Makis) Maropoulos
b43b25626b make cache package to work across multi handlers, remove the old 'WrapHandler' and keep the cache.Handler as documented only
Former-commit-id: b030cd92d26a9f646b060e379b3702b9a677749b
2018-01-01 21:53:12 +02:00
Gerasimos (Makis) Maropoulos
9e6691e5ce fix _benchmarks/iris-mvc-templates
Former-commit-id: 10b4952308c62b81eb7270b9e0b29ad0bb645bc5
2017-12-31 20:33:33 +02:00
Gerasimos (Makis) Maropoulos
4dbecf762c write a README at the _examples/tutorial/vuejs-todo-mvc mini tutorial, which will be published to other sites soon
Former-commit-id: cee096d0e327b0180bd4ec83d5674729c67b3ddb
2017-12-31 08:00:02 +02:00
Gerasimos (Makis) Maropoulos
1b1661ed53 ok almost finished. We're good at deadlines eventually. Tomorrow at 23:59 an article will be published same time with the dev branch merge to master
Former-commit-id: 42c1bf88cedbddf3cc01366ab769139546902e71
2017-12-31 02:32:28 +02:00
Gerasimos (Makis) Maropoulos
617258890e add GetRoute for MVC Controllers. Give the chance to change rsome route's properties like Name (used for reverse routing in templates, optionally).
Former-commit-id: 5ee9b1f97ff3c98cd8e5faddd23a87bbafb8e2e0
2017-12-30 22:04:26 +02:00
Gerasimos (Makis) Maropoulos
64da28af8b one for today, one for tomorrow and ready :)
Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
2017-12-30 20:40:52 +02:00
Gerasimos (Makis) Maropoulos
969aaab4f6 some comment grammar fixes? need help here.
Former-commit-id: 5695e4c6456b052fae45de1fa6724fae39ceac3e
2017-12-27 17:09:47 +02:00
Gerasimos (Makis) Maropoulos
685954d341 add a simple context#YAML function to render yaml data and make sure that the cookie's values are url escaped and unescaped when retrieve from client's headers
Former-commit-id: cad1e09679f6b646c12bb6ffdeba62738bdeef5d
2017-12-27 15:38:06 +02:00
Gerasimos (Makis) Maropoulos
19e9ed330d add sharable package-level hero dependencies with the mvc controllers instances
Former-commit-id: 6c53190e40fa42d242a73eb80361830b65f0d077
2017-12-27 15:09:52 +02:00
Gerasimos (Makis) Maropoulos
b4827c2b5e fix examples link in the /mvc and a controller test
Former-commit-id: 1384d7297f79f47a395701433034c57ad361f5ab
2017-12-27 04:20:42 +02:00
Gerasimos (Makis) Maropoulos
b282e7c563 Replace controller's .Register with .Handle and AddDependencies with .Register in order to be aligned with the 'hero' package, all examples and docs are updated, it's crazy how I can't stop even on Christmas
Former-commit-id: 3b42963e9806e327ee42942cf156bda6059eaf8f
2017-12-27 04:15:41 +02:00
Gerasimos (Makis) Maropoulos
650cd6c294 add images for hero basic examples to be easier to understand
Former-commit-id: 012ec70fc7761e899f4114f956839a6adce7c21a
2017-12-27 03:17:06 +02:00
Gerasimos (Makis) Maropoulos
2ab1456414 split of the mvc and the new hero package is completed, now handlers with input and output binding feature is a different feature than the mvc, however the mvc controller's methods can use the hero dependency injection as before (v10+)
Former-commit-id: d67f5a5ed9033286bcc4c04f6be612823cba2a57
2017-12-25 20:57:04 +02:00
Gerasimos (Makis) Maropoulos
46505f62db create a new package, name it as hero, I was thinking super or superb but hero is better name for what it does - the goal is to split the new 'mvc handlers' from the mvc system because they are not the same, users should know that they can use these type of rich binded handlers without controllers as well, like a normal handler and that I implemented here, the old files exist on the mvc package but will be removed at the next commit, I have to decide if we want type aliases for Result or no
Former-commit-id: cb775edc72bedc88aeab4c5a6de6bfc6bd56fae2
2017-12-25 20:05:32 +02:00
Gerasimos (Makis) Maropoulos
4ab889da5f minor comment updates for sessions package
Former-commit-id: 6f73c5d83861a1f61acda07e7f78cb882320dc8c
2017-12-24 19:43:31 +02:00
Gerasimos (Makis) Maropoulos
7f423ba068 thinking a new way of displaying the README, give no readme hand-written examples, we have the _examples folder already but I should continue creating the new documentation for deep understanding and show a part of it on readme as image(?)
Former-commit-id: 9b6a6bceffb6ae23bf490d78cad31367ca2aa78e
2017-12-24 06:24:45 +02:00
Gerasimos (Makis) Maropoulos
9c79dcc97a add locks on the MemoryService of the vue mvc example, keep it simple but runnable:P
Former-commit-id: 5d661f401e486a26d66f5c0c297f5cf897fc1834
2017-12-24 01:22:44 +02:00
Gerasimos (Makis) Maropoulos
d31b8c5274 _examples/tutorial/vuejs-todo-mvc finished, live updates on all clients with the same session id (u can do it with login id for example) and memory storage on the server side, works perfectly and amazing fast, nice vue and iris
Former-commit-id: 0bb930f43e2d70a707d3c6880dc255acd78debf2
2017-12-23 18:11:00 +02:00
Gerasimos (Makis) Maropoulos
e1c65d23fb finish the first state of the vuejs todo mvc example, a simple rest api - todo: websocket and live updates between browser tabs with the same session id
Former-commit-id: 0bd859420cff87014479c44a471ec273c621c1a2
2017-12-23 17:07:39 +02:00
Gerasimos (Makis) Maropoulos
b8b9643ca7 Remove big README examples, will be replaced with small quick examples so new users can found easier to get started
Former-commit-id: d5e804babf0edc0765a4195247071e410b27ea27
2017-12-22 10:25:34 +02:00
Gerasimos (Makis) Maropoulos
ef3a09c126 update the documents for the new MVC API and some of its new features but not finished yet, README big examples and _examples/mvc/login is are yet updated and I'm thinking of removing the big examples on README.md, they exist on the _examples/mvc updated.
Former-commit-id: c2938d4bcaa3520744526f7975ee3cce632499b3
2017-12-22 10:18:31 +02:00
Gerasimos (Makis) Maropoulos
8fa33a9882 fix typo
Former-commit-id: 1aaca0e3473003d00f19af9d16cf6f29f3f526a2
2017-12-20 18:10:57 +02:00
Gerasimos (Makis) Maropoulos
254a4ede95 add explanation why the 'globalVisitorsController' example is a Singleton, because it was not clear for new gophers previously.
Former-commit-id: 9267c415e53eeb00adadf6fde9e0aeeb415cf24a
2017-12-20 18:09:31 +02:00
Gerasimos (Makis) Maropoulos
2042fddb66 Another new feature: websocket controller, for real
Former-commit-id: c1a59b86733e890709b52446e22427a17d87f5fc
2017-12-20 17:56:28 +02:00
Gerasimos (Makis) Maropoulos
b78698f6c0 fix all _examples to the newest mvc, add comments to those examples and add a package-level .Configure in order to make it easier for new users. Add a deprecated panic if app.Controller is used with a small tutorial and future resource link so they can re-write their mvc app's definitions
Former-commit-id: bf07696041be9e3d178ce3c42ccec2df4bfdb2af
2017-12-20 08:33:53 +02:00
Gerasimos (Makis) Maropoulos
20ba72aecf fix typo
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
2017-12-18 06:47:05 +02:00
Gerasimos (Makis) Maropoulos
4fb46bf1f3 fix mvc/ideas/1/main.go->AfterActivation
Former-commit-id: bf3d8227793fba76f0f7349d82d1200275ac9147
2017-12-18 02:24:53 +02:00
Gerasimos (Makis) Maropoulos
d5a38a0cd6 more checks about creating new instance of controller on each request - this time if all bindings are static then set them to the initial-devpassed controller and if the total number of lengths are equal with these static dependencies then we ignore the injector and use the initial controller on each request - maximize the performance when simple controller is used - need more cleanup before new release but I hope until Christmas iris developers will be amazed
Former-commit-id: 32ed69368d1df2c25cdb712bb7f0cf47b2e36c05
2017-12-18 00:16:10 +02:00
Gerasimos (Makis) Maropoulos
68cc6641d4 Add session.Destroy (before I've added: Increment & Decrement entry helpers as well) | Improve the debug messages for the controllers
Former-commit-id: f5f17b05252a5032ace1e2d0fdd2304fc4004635
2017-12-16 23:09:00 +02:00
Gerasimos (Makis) Maropoulos
b8cafce6b9 add simple tests for _examples/mvc/hello-world and session-controller
Former-commit-id: d88a792ba57cd869d2888f41bca6eb3e5b4f7d49
2017-12-16 21:27:20 +02:00
Gerasimos (Makis) Maropoulos
34664aa311 OK, my dream-idea is implemented. TODO: Some examples and doc.go is not updated yet, comments on the mvc/di subpackage, the tutorial/vuejs-todo-mvc is running but not finished yet (it's using browser's localstorage and it should be replaced by the http requests that are registered via iris mvc
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
2017-12-16 06:38:28 +02:00
Gerasimos (Makis) Maropoulos
55dfd195e0 remove the old 'mvc' folder - examples are not changed yet - add the 'di' package inside the mvc2 package - which will be renamed to 'mvc' on the next commit - new mvc.Application and some dublications removed - The new version will be version 9 because it will contain breaking changes (not to the end-developer's controllers but to the API they register them) - get ready for 'Christmas Edition' for believers
Former-commit-id: c7114233dee90ee308c0a3e77ec2ad0c361094b8
2017-12-15 20:28:06 +02:00
Gerasimos (Makis) Maropoulos
4e15f4ea88 create one generic package for dependency injection which can be used outside of Iris too - worked but unfished
Former-commit-id: a9d600321c07d7c9f39105416f14ae91528a16a3
2017-12-14 23:04:42 +02:00
Gerasimos (Makis) Maropoulos
a5fac270cf Merge branch 'master' into dev
Former-commit-id: d9d3c857d953c379f724bdb1d0473f91758f7cfe
2017-12-14 14:21:03 +02:00
Gerasimos (Makis) Maropoulos
434b07675e add example for the simple context#WriteGzip
Former-commit-id: 3b4e0834370ebde5e4796b3d75cdbd5c2c25093f
2017-12-14 14:15:29 +02:00
Gerasimos (Makis) Maropoulos
3349fd5c91 Merge branch 'master' into dev
Former-commit-id: a95af68b60eee434994d8bfa55ad26d587f4fe89
2017-12-14 06:16:01 +02:00
Gerasimos (Makis) Maropoulos
22504f01ef add a simple hero template example as requested at https://github.com/kataras/iris/issues/840
Former-commit-id: 1c65190d21a5febbbbad1b2b565f82f749278d48
2017-12-14 06:11:37 +02:00
Gerasimos (Makis) Maropoulos
0b2dcc76f5 start of the vue + mvc example and a simple session binding
Former-commit-id: 994f00952352c93d270ad197cb843f3222fb37c0
2017-12-14 05:56:23 +02:00
Gerasimos (Makis) Maropoulos
ea863914dc update the vendor json library which is used when 'WithOptimizations' passed on 'app.Run' and resolve https://github.com/kataras/iris/pull/839#issuecomment-351374343
Former-commit-id: ad3354717d593393a3f3aec863ec92f1f7e1c829
2017-12-13 14:37:02 +02:00
Gerasimos (Makis) Maropoulos
ed79f0c3cd ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2
Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
2017-12-10 07:00:51 +02:00