Commit Graph

1369 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
18c23e7d1e hero support for the new uint64
Former-commit-id: 0cd72427302afd50a18c88443f871db393429bfa
2018-08-23 06:33:54 +03:00
Gerasimos (Makis) Maropoulos
b019a281eb New ':int64' and ':uint64' route path parameters - and - support the new uint64 for MVC (int64 was already supported there) - and - add ctx.Params().GetUint64 (GetInt64 was already there) - and - make the ':int or :number' to accept negative numbers with no digit limit (at low level) and rename the 'app.Macros().Int.RegisterFunc' to 'Number.RegisterFunc' because number can be any type of number not only standard go type limited - and - add alias for ':boolean' -> ':bool'. Finally, Update the examples but not the version yet, I have to provide a good README table to explain the end-developers how they can benefit by those changes and why the breaking change (which is to accept negative numbers via ':int') is for their own good and how they can make their own macro functions so they do not depend on the Iris builtn macro funcs only. More to come tomorrow, stay tuned
Former-commit-id: 3601abfc89478185afec3594375080778214283e
2018-08-23 06:30:12 +03:00
Gerasimos (Makis) Maropoulos
01b5f6089d add Context.Params#GetUint64
Former-commit-id: bf6b2dcc0a1078f072c35f4affe375a2eb3f0b82
2018-08-23 02:46:58 +03:00
Gerasimos (Makis) Maropoulos
b4a30f5af5 sessions database: boltdb: add support for ShiftExpiration -> OnUpdateExpiration like redis
badger sessiondb still in progress.


Former-commit-id: 1f89a0efb753c0e02b774e0d9e48d879e987c939
2018-08-18 15:01:26 +03:00
Gerasimos (Makis) Maropoulos
197fb5d113 Merge pull request #1064 from akiraho/master
various fixes on redis as sessions db

Former-commit-id: 0fb804f095c37d340eeaf595806329a67c5b43ac
2018-08-18 14:41:21 +03:00
Gerasimos (Makis) Maropoulos
6db7a2a7a7 Merge pull request #1062 from mattc41190/patch-2
Fixed some minor grammar issues

Former-commit-id: b1d5bd6b667871c534cc62572f491974d106b7f6
2018-08-17 15:41:28 +03:00
Akira Ho
45c1f6427f fix / redis.getKeysConn() returns keys without Config.Prefix otherwise such keys passed into updateTTLConn() would get duplicate prefixes failing the ttl reset
Former-commit-id: bfcc02e5db16216d221c533fc28919fe292d6532
2018-08-16 17:42:01 +08:00
Akira Ho
4e7ca254d9 fix / redis service.TTL() returns seconds, hasExpiration, found
Former-commit-id: 25743848458f2a6cf3e78d5ae119d2ba2a822f79
2018-08-16 17:37:41 +08:00
Akira Ho
768dd76b62 fix / lifetime.Time not updated on expiration shift
Former-commit-id: 03cd1e8dcf20d6e68b70667d1f808860cb027d32
2018-08-15 14:21:22 +08:00
Matthew Cale
334c4151df Fixed some minor grammar issues
Former-commit-id: 190016fd2bd2f779a3602ed7bacda526677a2c8a
2018-08-14 10:30:44 -05: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
Gerasimos (Makis) Maropoulos
54c87be703 Merge pull request #1059 from mattc41190/patch-1
Fixed Some Typos

Former-commit-id: 3d0166cc114dc3fb6782c721fc13bc2a224cbfa3
2018-08-11 21:37:06 +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
0491aa68b5 add some more examples and screenshots about hero funcs on README.md
Former-commit-id: 2703036228ec896edcffe322964e85680be09d23
2018-08-08 14:58:37 +03:00
Gerasimos (Makis) Maropoulos
01d5578c7f add websocket example on README.md
Former-commit-id: 18f44e0c682e189859f437d7c179bb8d3b4882da
2018-08-08 14:45:39 +03:00
Gerasimos (Makis) Maropoulos
cc679280ff fast-fix from prev commit
Former-commit-id: 3e1160018eb25cd844785fb951af0d31776df04c
2018-08-08 13:29:01 +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
43fd73eab9 internals: core/router/api_builder_benchmark_test.go: replace the strings.Builder(go 1.10+) with the bytes.Buffer, it is a test so we are ok let it build and run for go1.10- as well
Former-commit-id: a531db90fe02fd327e12ecc20128090e18b3dbcb
2018-08-07 13:05:32 +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
293c29d6e7 preparing for the Iris control panel -- stay tuned when you hear my new project name 'cornea'
Former-commit-id: 8c0ada865ee17801efe90b197bf49bdbd55f636b
2018-08-06 04:20:59 +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
1ec8452208 simplify readme
Former-commit-id: 95158c51fc01195b60f9ee873ab416c314568198
2018-08-04 13:08:18 +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
badea8b9c5 Merge pull request #1053 from dibyendu/iris-ws.js
Minified the client.js using UglifyJs

Former-commit-id: 7026de0467d986b959f61d85b23b8f50137abaff
2018-07-30 12:39:49 +03:00
Dibyendu Das
f4dd07ad00 Minified the client.js using UglifyJs
$ npm install uglify-js -g
$ uglifyjs --compress --mangle -o client.min.js client.js

Former-commit-id: 078ce0534f845c018fb66767c0aec17dd1406160
2018-07-30 14:27:28 +05:30
Gerasimos (Makis) Maropoulos
774a2142a4 grammar
Former-commit-id: 1c715e3477595c7704450d96f721f88e2b7696a1
2018-07-25 06:17:21 +03:00
Gerasimos (Makis) Maropoulos
6bd50dda52 give more life to the README like the old times
Former-commit-id: ed0cdd621ab6f6cb89f622e2d978d2e2ae8a6b8a
2018-07-25 06:14:33 +03:00
Gerasimos (Makis) Maropoulos
bc4ca99cf9 websocket: dupl the client js lib for cdns as requested by: https://github.com/kataras/iris/issues/1047
Former-commit-id: c76a6cf70ce11ac1beeafb9b80559f2bf0274b9f
2018-07-25 04:46:31 +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
0297afdc6b nothing crazy here, add the 'Transcoder' type explicitly to the sessions#DefaultTranscoder, relative to https://github.com/kataras/iris/issues/1033
Former-commit-id: 3a907d20eaf2be4b0ee21aa2be3fcc2558b7fb4e
2018-06-27 13:30:28 +03:00
Gerasimos (Makis) Maropoulos
16a37dbfac add kataras/survey to the Gopkg.toml although I do NOT recommend using 'dep' or 'gp' or any other third-party tool for your dependencies -- Go is not ready for that, at least yet. Iris is fully vendored you don't need those here. Rel: https://github.com/kataras/iris/issues/1029\#issuecomment-400272324
Former-commit-id: b2f3c766ae9fb250f1f8c76cf7f47ff640169929
2018-06-26 17:36:08 +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 (Makis) Maropoulos
d216b91074 update protobuf vendor for badger session database
Former-commit-id: de02f8fcd7fa45a18285b687b5f3452c580b1339
2018-06-24 14:24:58 +03:00
Gerasimos Maropoulos
cc4409e77a Update to version 10.6.6. Read https://github.com/kataras/iris/blob/master/HISTORY.md#tu-05-june-2018--v1066 for more
Former-commit-id: 9f73b831dcd6bda160ddd3f70ace59a5cc63c31c
2018-06-05 01:24:35 +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
Gerasimos (Makis) Maropoulos
5de17a08f9 Merge pull request #1015 from tkhkokd/tkhkokd-readmeJPN
README_JPN added

Former-commit-id: 196a9cedbc4287ac8a5099b6ca46207563a58070
2018-05-30 09:53:52 +03:00