Commit Graph

1387 Commits

Author SHA1 Message Date
YuShuaiLiu
8b4167c2ab fix README
Former-commit-id: a7c3c6555d4a378d1c4e2647bd1f08566b5a2b37
2018-09-14 15:06:46 +08:00
Gerasimos (Makis) Maropoulos
52a07df0f4 upstream fixes
Former-commit-id: 574060e41ace86cd86588795eadb1ad4083ec630
2018-09-13 02:53:13 +03:00
Gerasimos (Makis) Maropoulos
6fc7fc632a Merge pull request #1079 from morihaya/patch-1
Fixed typo in comment

Former-commit-id: 008cf1c9f77c67867c0cfc2c938b92f4be1b12e2
2018-09-13 00:07:37 +03:00
Gerasimos (Makis) Maropoulos
689f814035 resolve https://github.com/kataras/iris/issues/1085 and https://github.com/kataras/iris/issues/1086
Former-commit-id: 17ff6dfcc6ae7ba5d2a771925327fe4cea14befd
2018-09-12 23:59:46 +03:00
morihaya
057ea27f99 Fixed typo in comment
'iris.YAML("myconfig.tml")' -> 'iris.TOML("myconfig.tml")'


Former-commit-id: 6fe53f743520744447d503570993cb0f54b572d9
2018-09-03 00:49:02 +09:00
Gerasimos (Makis) Maropoulos
36d6820f9a add the param types on README.md (on v11 we have support for more and in my TODO list is to add support for custom param types as well, we have already support for custom macro param types funcs)
Former-commit-id: 613d397826addc4cedcca07aee2ceb3cd2f139ee
2018-09-01 19:27:21 +03:00
Gerasimos (Makis) Maropoulos
f2bac496b9 add vendor for go-version (the auto-updater will probably be removed on the next major release due to go modules)
Former-commit-id: 3d0bb6e3a440852f0d0e8b9ed2f78609e69ed263
2018-09-01 19:19:58 +03:00
Gerasimos (Makis) Maropoulos
efa17e8899 dynamic param types part 1
Former-commit-id: 5829d53de848c0ea4491b53e4798f6c9cdf8d9a7
2018-09-01 18:53:42 +03:00
Gerasimos (Makis) Maropoulos
91fe161e90 more details
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>

Former-commit-id: 4ed59111e5e5fc05a9935a9290f9e385c6413c79
2018-09-01 02:10:22 +03:00
Gerasimos (Makis) Maropoulos
4fd9886a10 go modules and vendoring section explain why not yet, in my opinion let's stick with the current system until gophers get acquainted with the new go modules and how it works - I putted a link to the TOC in order to help them
Former-commit-id: 572527152de5808c834546ca1373de716046770e
2018-09-01 02:06:56 +03:00
Gerasimos (Makis) Maropoulos
e6bd3c1f0c remove unnecessary deps
Former-commit-id: 634283a9b227064b703c3c45ce893dfa08345bb7
2018-08-31 02:16:23 +03:00
Gerasimos (Makis) Maropoulos
f365be3c62 remove 'WithoutVersionChecker', update and test the new versions of some of the dependencies, add a history entry with unknown release date
Former-commit-id: 399db6aac44d3b336648d6d61842f4d7a0266842
2018-08-31 02:09:48 +03:00
Gerasimos (Makis) Maropoulos
6cf48df5c0 add the StatusMisdirectedRequest (421) added in go 1.11 net/http package as well
Former-commit-id: 75820b859905cab2a5b62aad1577f704a66082b2
2018-08-25 19:23:52 +03:00
Gerasimos (Makis) Maropoulos
8d33c7a267 add the di section after the parameters in path section
Former-commit-id: 423060f77629a7d955e80258b681d62a791b7411
2018-08-24 14:47:56 +03:00
Gerasimos (Makis) Maropoulos
7b94a4666c format the prev
Former-commit-id: 4d203295b1daa1091a45de8ce683af0e6b47365b
2018-08-24 14:43:19 +03:00
Gerasimos (Makis) Maropoulos
b3bc30c5af add a table on the README for the param types, macro funcs and do it yourself section
Former-commit-id: eca9418779371c014d3bf3bca88430055841da4f
2018-08-24 14:41:53 +03:00
Gerasimos (Makis) Maropoulos
cbd8fe95ac add uint8 parameter type, and mvc and hero - this commit may be a point of tutorial on how to add a completely new type from scratch to the hero for future contributors
Former-commit-id: dc7a7e6c97ef0c644a22e92072e4bdb98ae10582
2018-08-24 00:56:54 +03:00
Gerasimos (Makis) Maropoulos
ef5f383227 support more than string and int at macro functions route path input arguments: int,uint8,uint16,uint32,int8,int32,int64,slice of strings and string
Former-commit-id: d29c4fbe5926bac590151322a585f68b394ff72d
2018-08-23 17:29:39 +03:00
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