Gerasimos (Makis) Maropoulos
|
75d710ce90
|
respect the new configurator WithPostMaxMemory on the context.PostFile
Former-commit-id: b0127d2ae3048a94f2647c53b2177dbc79084448
|
2017-12-27 20:47:19 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
90c825efc8
|
breaking change: remove static field context.DefaultMaxMemory and replace it with a better configurable option inside the main configuration, this makes things clear and it allows users to prevent any unwanted client behavior without digging into the framework's internals
Former-commit-id: 875afd32acfab8abdea15ce9be2ad384eb6bad5e
|
2017-12-27 20:42:46 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
6254ade603
|
some improvements on the context#Post/Form comments docs
Former-commit-id: 0486e2291f3fb39eeed4d03a7d20becd516e5bbc
|
2017-12-27 19:52:06 +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
|
8fd4dc2b4b
|
update badger sessiondb
Former-commit-id: 8419d561ef732d6e4d0d3bb5536db540e1dd3a9f
|
2017-12-27 03:40:10 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
03ecfe49f1
|
update badger db to its latest version and remove it from gopkg.toml/lock because it's vendored inside the sessionsdb/badger itself, this should fix https://github.com/kataras/iris/issues/848
Former-commit-id: 006b1d4d3c8dbe09b448ff33dade8978fddef4eb
|
2017-12-27 03:35:01 +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
|
38ff34ee1e
|
fix trailing parenthesis on the mvc/ideas/1/main.go which will be removed at the next commits, this was my dream and I made it reality in just 50 hours :P
Former-commit-id: 9c01ab4d684897815dccb02ab6515f568b22a1cc
|
2017-12-25 21:00:14 +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
|
042603c311
|
this is just a temporary view
Former-commit-id: d13c9a98d1a1ccc192ac1f5049936d94c959eb07
|
2017-12-24 06:27:03 +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
|
2b566d68e8
|
resolve vendor duplication, we won few MB in size but not much, if I apply my solution they will think me illuminati like florin did lol
Former-commit-id: 56c273b3d8b79ce7f777c587564f58363512491e
|
2017-12-24 02:53:52 +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
|
a2f217be17
|
Merge branch 'master' into dev
Former-commit-id: ff754fb445bdc579c1d7925fcc9315e5ffc92615
|
2017-12-22 11:12:41 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
93b037737c
|
add comment doc on the core/memstore.go#Entry##GetByKindOrNil
Former-commit-id: 8e5f0132ace95088a7cdca05b923773369116ad4
|
2017-12-22 11:12:10 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
a5a87706c1
|
misspell fix
Former-commit-id: e301671f86118ad6ac686fd3e43b3cba92dbbff1
|
2017-12-22 11:08:16 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
12ef034ea1
|
add some comment docs at the mvc/controller.go
Former-commit-id: 6ff3c8694c3e581c3e28fc706bddbc6759492280
|
2017-12-22 11:07:13 +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
|
91ee8287a8
|
Merge branch 'master' into dev
Former-commit-id: d338e6e846b4379199015dc4ae76677b2d8cbe53
|
2017-12-21 14:46:58 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
e4ed775ce0
|
Merge branch 'master' of https://github.com/kataras/iris
Former-commit-id: 0dee4c6be389f47f938ba71c64d2224d610f7720
|
2017-12-21 14:43:15 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
5cbc3d6827
|
fix https://github.com/kataras/iris/issues/846
Former-commit-id: 5ade70e6133406c8bbb4ecef36541fdd0d857f6f
|
2017-12-21 14:42:39 +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
|
fd0f3ed6cb
|
fix check for singleton on fillStruct - no problem let's set all the static values on the first value although it may never be needed if request-scoped/stateless (No Singleton di.State)
Former-commit-id: a72bcd720d900fdc009cabb1e4a0b455026710fd
|
2017-12-20 00:09:17 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
6285622cfa
|
controller's struct: if unexported field(s) is set-ed manually (binder cannot do that) and no other dynamic dependency(depends on context) then tag the controller as singleton, use a single controller instance to serve all clients (the controller's methods are per-request of course but its(controller's) fields will be 'global'- users should be careful because parallel access of those fields are up to them by using mutex or atomic or values that are safe for concurrent access.
Former-commit-id: dfafcb3a37a9b33d713bf47f16dd60764b026a08
|
2017-12-20 00:01:50 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
c15763c556
|
ok make it cleaner, it's working well and blazing fast but I have to do a lot cleaning and commenting and docs as well before push it to master --- hope at christmas day, also thinking some internal ideas - the whole code is not ready to be readen by a third person yet.
Former-commit-id: 0b3fb2841d5032ff47bdca42a6f4ccfeb789ce3c
|
2017-12-19 23:40:42 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
5d08049ac6
|
Merge pull request #843
Former-commit-id: 0d48055311feff7327bed6e3dd5b6ce5f267206c
|
2017-12-19 15:00:12 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
43444ebe12
|
Merge pull request #845
fix a typo
Former-commit-id: da04283fe4da50ffe7086b19f4ddc179538ae202
|
2017-12-19 14:57:40 +02:00 |
|
Wing Gao
|
fef59c4c0b
|
Merge commit '67341251b8439e2064b3f8cc987313822bed23d0 [formerly c88b33d218dadc9f2e9b60366c39ba2049e68e3b]' into wing
Former-commit-id: bfbf0671b4a02aae27695a3a6cb4f134ce41102c
|
2017-12-18 20:11:28 +08:00 |
|
Cody Oss
|
835e2f8c08
|
fix another minor typo
Former-commit-id: 0961f0882e63d3d43ef8c176a873bcd4e0d155ec
|
2017-12-18 00:25:57 -06:00 |
|
Gerasimos (Makis) Maropoulos
|
4261b5784a
|
Merge branch 'master' into dev
Former-commit-id: 108537a683ca23436c3279d6205ee7a8c9300939
|
2017-12-18 07:28:52 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
67341251b8
|
Be prepared, 2018 is the year of Iris. Note on README
Former-commit-id: c88b33d218dadc9f2e9b60366c39ba2049e68e3b
|
2017-12-18 07:28:38 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
d95304148e
|
Merge branch 'master' into dev
Former-commit-id: fe6617f679a0434794838f4becab2997ff88c435
|
2017-12-18 07:25:00 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
d88e49abaf
|
Last year we had HTTP/2 at Christmas, this year I will give you even better gift
Former-commit-id: 4f384a18b564e7c0f0a48bc74fec05280aa13d76
|
2017-12-18 07:22:55 +02:00 |
|
Gerasimos (Makis) Maropoulos
|
20ba72aecf
|
fix typo
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
|
2017-12-18 06:47:05 +02:00 |
|
Cody Oss
|
e4aa414add
|
fix a typo
Former-commit-id: 266f99ad325eb0463c76fb3f6123dc0cdaba1aad
|
2017-12-17 21:45:11 -06: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
|
40b40fa7d3
|
don't create new controller instance when all fields are set-ed by the end-dev - but we keep show those fields' values as Dependencies on the BeforeActivate in order to the future custom controllers authors to be able to check if something is added as dependecy or even manually set-ed before bind their own dependecies, otherwise they could override the manually set-ing
Former-commit-id: 72d3a0f1299781ee9a5e3e35e4a543354f8cd63d
|
2017-12-17 06:34:16 +02:00 |
|