Commit Graph

223 Commits

Author SHA1 Message Date
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
20ba72aecf fix typo
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
2017-12-18 06:47:05 +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
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
43c330f338 Merge branch 'master' into dev
Former-commit-id: 451baf594a5fb7f288291cdd73b86998cb364af4
2017-12-13 14:46:45 +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
aa18b62f64 add a ridiculous simple 'context#String' func which will return a very simple string representatin of the current request
Former-commit-id: e8a17f006516d77aa466b64c8065ed8f07b332e4
2017-12-10 07:26:01 +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
kataras
20f68416a7 add context#IsMobile
Former-commit-id: 2f857e2b57a10233d4c9ea5ec365b84c1b8b1c76
2017-12-04 08:12:34 +02:00
kataras
907ba28f84 give some more control over request params and their entries for the end-developers
Former-commit-id: 91362d3de5c63faf0d124e66747e40ad0df04fbb
2017-11-23 12:30:13 +02:00
kataras
9640f59961 app. SPA from router wrapper to a simple handler, works faster now. Iris' router respects wildcards with other paths as well (unique) for almost a half year now... so we don't need a whole wrapper for those things anymore, fixes https://github.com/kataras/iris/issues/807
Former-commit-id: 5bd7f24997bb025a01bb92960a1bf255f073a228
2017-11-10 16:15:47 +02:00
kataras
ef41e07d4e Add a better example for the recaptcha middleware as requested at: https://github.com/kataras/iris/issues/799
Former-commit-id: 85c3286a9d6be5cf47631e7608f70f3790934e64
2017-11-04 02:59:21 +02:00
kataras
15feaf0237 Update to version 8.5.5 | Read HISTORY.md
Former-commit-id: dced7d472edabbab4f80c76051f13261928a8dea
2017-11-02 05:54:33 +02:00
Gerasimos (Makis) Maropoulos
4a63488948 Update to version 8.5.4 | Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md#th-26-october-2017--v854

Former-commit-id: 43a3b46b99085e0e0ed47b281e2f61dbb1ac6eb6
2017-10-26 02:48:16 +03:00
Gerasimos (Makis) Maropoulos
32d14db46d Update the _examples/mvc/login example - add a Path property at mvc.Response and add a context.Proceed helper function
Former-commit-id: b898901fe4a324e888a6e09c93530cf7a551cf2a
2017-10-12 16:28:41 +03:00
Gerasimos (Makis) Maropoulos
49ee8f2d75 Update to version 8.5.0 | NEW: MVC Output Result | Read HISTORY.md
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
2017-10-09 15:26:46 +03:00
Gerasimos (Makis) Maropoulos
4ff0571785 A tiny improvement to the context.ServeFile
Former-commit-id: e9eaa1f51c08ec74cbc17c7cd3f62d557faf23a0
2017-10-01 19:02:55 +03:00
Gerasimos (Makis) Maropoulos
38c6241055 Add a third, simple, example for folder structuring as requested at https://github.com/kataras/iris/issues/748
One change to code base but it will be described at the next version:

Error Handlers (`app.OnErrorCode/OnAnyErrorCode`)  respect the `app.UseGlobal`'s middlewares now (not the `app.Use` for reasons we can all understand, hopefully).


Former-commit-id: ec97bbb04548f9932cf4d7b950be513b70747bcb
2017-10-01 16:29:25 +03:00
Gerasimos (Makis) Maropoulos
1a57504431 Add nil checks for memstore's GetInt, GetInt64, GetFloat64, GetBool and remove the golang/net/context's interface completion from Context
Former-commit-id: f79940acf96d44df5bae8eaaaf20086fdc5e251e
2017-09-29 03:54:05 +03:00
Gerasimos (Makis) Maropoulos
ff8f96d56d fix https://github.com/kataras/iris/issues/760 and deeper
Former-commit-id: 65e8848933386f1d3253b560bbd160079bf4d876
2017-09-22 13:46:00 +03:00
sunshinekitty
cfdff2a962 Update for formBinder repo rename
Former-commit-id: a996a9fe9f65099f3511beea207ba29f69879f64
2017-09-13 03:06:01 -05:00
hiveminded
89f79799d1 fix https://github.com/kataras/iris/issues/737 fix https://github.com/kataras/iris/issues/740
Former-commit-id: e760aa67d8750bfdd15fc84e2dedeb591c204ba9
2017-09-11 12:18:30 +03:00
hiveminded
8a9a498316 update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
2017-09-07 16:20:31 +03:00
hiveminded
d7ec0d4416 add content type and response text to the Controller 💯
Former-commit-id: 99cde0a445027b10839155501a7918732a783af3
2017-09-02 14:32:14 +03:00
kataras
f5d62a6a18 create a gopkg.toml manually in order to resolve https://github.com/kataras/iris/issues/731
Former-commit-id: c9ad41b73ff0338429fe69cd083a1daf684c8e40
2017-08-29 13:13:52 +03:00
kataras
a2de506f80 Upgrade the markdown parser vendor. Prev Commit: Update to v8.4.4, new mvc features. Read HISTORY.md.
Former-commit-id: 194b8fb1ba68a046e0e89a42a3e79b2cd319f14b
2017-08-27 19:05:15 +03:00
kataras
8b3c44b0a3 Give read access to the current route, a feature that many of you asked for
Former-commit-id: 39295ac1331ee08d3047c84f5c8ea152bce96781
2017-08-23 16:46:55 +03:00
kataras
151e38d5c8 .NET Core vs Iris MVC vs Iris (classic API with Handlers)
No need to format using Writef on benchmarks for a simple string value without dynamic text, just use the WriteString which is the correct function for these apps.


Former-commit-id: 896ec514570d533d8da91af3ad199fc4f823fe74
2017-08-19 07:11:30 +03:00
kataras
b96476d100 Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00
kataras
39a24fb7cb Document https://github.com/kataras/iris/issues/720 and fix https://github.com/kataras/iris/issues/719 for good
Former-commit-id: 75b855bee9216c28ce8e1ff46aee467766c37f23
2017-08-13 01:47:19 +03:00
kataras
e00cf383a2 Vol2 : https://github.com/kataras/iris/issues/717, worked
Former-commit-id: f4a19eb83a28279782b8a75ee298b38c9e180157
2017-08-12 08:49:00 +03:00
kataras
48e352e1df Update to 8.2.0 | BoltDB session database, fix file sessiondb, faster, simpler and improvement Session Database API
Former-commit-id: 4034737a65b78a77277e4283fd9289c17f4a452e
2017-08-07 06:04:35 +03:00
kataras
2b6af256fa Fix https://github.com/kataras/iris/issues/703
Former-commit-id: 54afc90ad3f04f7164916e34f692d68118bfa675
2017-08-02 20:37:13 +03:00
kataras
345e7280a1 Update to 8.1.0 - a new logger implemented as a solution for https://github.com/kataras/iris/issues/680
Former-commit-id: 765b43602655fad7f525ca7a5f7f297a6167d075
2017-07-26 15:30:20 +03:00
hiveminded
9a0b18acbf move sessions and websocket examples, gofmt, fix misspells and experimental optimizations 🍐
Former-commit-id: cae4f94bbd404d26ab13dade02b52f81feaddf24
2017-07-22 22:57:20 +03:00
hiveminded
feb1d264c0 add quicktemplate example. Iris + Quicktemplate made easy 👍
Former-commit-id: b17fb21d8c1d5a73f9f9170f49ae0527870377a1
2017-07-18 21:17:23 +03:00
kataras
093d087a68 Update to 8.0.4 | New: transfer a message to the request logger
Former-commit-id: 2bab3c9f28f7e9edd5d85e579349f70388af871d
2017-07-17 17:42:51 +03:00
kataras
9f85b74fc9 Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
2017-07-10 18:32:42 +03:00
kataras
e0128d204d Update to 7.2.0. Read https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720
Fix https://github.com/iris-contrib/community-board/issues/12 .

Read more: https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720


Former-commit-id: 398cb69fdc7e5367b147693371287ffb7b912feb
2017-06-15 20:02:08 +03:00
kataras
d031ad55b8 Update to 7.0.5 | Dynamic and static paths are not in conflict anymore.
Read more at: https://github.com/kataras/iris/blob/master/HISTORY.md


Former-commit-id: b636d25c141ebdd5ad095ae9271433876a96e7ff
2017-06-11 23:07:50 +03:00
kataras
14e7751d21 SetImmutable for sessions and context's values. https://github.com/iris-contrib/community-board/issues/5
New package "memstore" created, read it to see how I made it.


Former-commit-id: 9edc344b938786b2ef68defec03c44259a2d539c
2017-06-08 03:39:15 +03:00
kataras
a2df3c9740 Fix django view engine and context.ViewData
Former-commit-id: e16a9ef0241f83c4b9a7ebd3b5b7663b33fb070a
2017-06-05 03:27:35 +03:00
kataras
5e4b63acb2 Publish the new version ✈️ | Look description please!
# FAQ

### Looking for free support?

	http://support.iris-go.com
    https://kataras.rocket.chat/channel/iris

### Looking for previous versions?

    https://github.com/kataras/iris#version

### Should I upgrade my Iris?

Developers are not forced to upgrade if they don't really need it. Upgrade whenever you feel ready.
> Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes.

**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris`.
For further installation support, please click [here](http://support.iris-go.com/d/16-how-to-install-iris-web-framework).

### About our new home page
    http://iris-go.com

Thanks to [Santosh Anand](https://github.com/santoshanand) the http://iris-go.com has been upgraded and it's really awesome!

[Santosh](https://github.com/santoshanand) is a freelancer, he has a great knowledge of nodejs and express js, Android, iOS, React Native, Vue.js etc, if you need a developer to find or create a solution for your problem or task, please contact with him.

The amount of the next two or three donations you'll send they will be immediately transferred to his own account balance, so be generous please!

Read more at https://github.com/kataras/iris/blob/master/HISTORY.md


Former-commit-id: eec2d71bbe011d6b48d2526eb25919e36e5ad94e
2017-06-03 23:22:52 +03:00
Gerasimos Maropoulos
f66b7e2eab Update to 4.5.0 2016-10-09 21:09:53 +03:00
Gerasimos Maropoulos
741ecbf2fb https://github.com/kataras/iris/issues/423 2016-09-15 18:59:27 +03:00
Gerasimos Maropoulos
b8b52ad46e Update to 4.1.4. Users & Devs can ignore this update. Read HISTORY.md for more 2016-09-04 22:02:31 +03:00
Gerasimos Maropoulos
befa43ba2a context.SendFile supports resume (by range). https://github.com/kataras/iris/issues/359#issuecomment-240471538 2016-08-17 20:16:23 +03:00
Gerasimos Maropoulos
c6f5406c3b Better gzip managment, align with https://github.com/kataras/iris/issues/361 . OnError on Parties: https://github.com/kataras/iris/issues/35 2016-08-14 05:44:36 +03:00
Gerasimos Maropoulos
f8f6abd906 Add PostValuesAll, PostValues, PostValue shortcut for aio multipart, form data, raw post, query data 2016-07-28 12:13:54 +03:00
Gerasimos Maropoulos
3f13707428 Expose a standard Session interface on context/context.go | https://github.com/kataras/iris/issues/316 2016-07-26 19:36:31 +03:00
Makis Maropoulos
077984bd60 🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md
**Sessions were re-written **

- Developers can use more than one 'session database', at the same time,
to store the sessions
- Easy to develop a custom session database (only two functions are
required (Load & Update)), [learn
more](https://github.com/iris-contrib/sessiondb/blob/master/redis/database.go)
- Session databases are located
[here](https://github.com/iris-contrib/sessiondb), contributions are
welcome
- The only frontend deleted 'thing' is the: **config.Sessions.Provider**
- No need to register a database, the sessions works out-of-the-box
- No frontend/API changes except the
`context.Session().Set/Delete/Clear`, they doesn't return errors
anymore, btw they (errors) were always nil :)
- Examples (master branch) were updated.

```sh
$ go get github.com/iris-contrib/sessiondb/$DATABASE
```

```go
db := $DATABASE.New(configurationHere{})
iris.UseSessionDB(db)
```

> Note: Book is not updated yet, examples are up-to-date as always.
2016-07-15 20:50:36 +03:00
Makis Maropoulos
f7a782b692 Remove deprecated functions 2016-07-13 14:05:32 +03:00
Makis Maropoulos
b99afb2875 Update to v4.0.0-alpha.1 2016-07-13 06:28:09 +03:00
Makis Maropoulos
0b8cb29e0c Update to 3.0.0-pre.release, Read HISTORY.md for new features and changes
Yes new features, with Iris you always get them on each version or
revision or non-semantic version
2016-07-07 02:36:48 +02:00
Makis Maropoulos
f5f7f22245 Ok finish the context's tests 2016-07-07 01:26:05 +02:00
Makis Maropoulos
9100560e00 Embrace https://github.com/kataras/iris/issues/250 - Flash messages available inside request life 2016-07-02 15:02:33 +02:00
Makis Maropoulos
49c1a595ec Remove unused context.Domain
it was added (and wrong idx) on previous commit for some of my internal
tests, this is not used anywhere so remove it.
2016-06-30 06:02:07 +03:00
Makis Maropoulos
66a66fdfa0 Fix https://github.com/kataras/iris/issues/231 2016-06-30 05:58:04 +03:00
Makis Maropoulos
abccf7fc06 Add ParamInt64 as requested on chat from the community 2016-06-26 08:46:04 +03:00
Makis Maropoulos
132021ec43 Add URLParamInt64 as requested by the community on chat 2016-06-26 08:44:10 +03:00
Makis Maropoulos
f83b532835 Embrace the weekend- Update to rc.3 | Read the HISTORY.md 2016-06-24 01:34:49 +03:00
Makis Maropoulos
4a446ac1e2 Complete the OAuth/OAuth2 'high level' support 2016-06-22 16:01:31 +03:00
Makis Maropoulos
56f78567a2 New: OAuth2 support via gothic. Example: https://github.com/iris-contrib/gothic/blob/master/example/main.go
https://github.com/iris-contrib/gothic/blob/master/example/main.go
2016-06-22 12:45:57 +03:00
Makis Maropoulos
70b5e3d090 New feature: Auth support for social networks, dropbox, amazon and so on. Untested
https://github.com/iris-contrib/goth/ is the main package which has been
converted to work with Iris from the ...
https://github.com/markbates/goth/ . Not yet tested on real application.
2016-06-22 04:22:12 +03:00
Makis Maropoulos
d837381b16 Update to 3.0.0-rc.1 - Read the HISTORY.md. Relative: #183 #184 #166 #176 #181
Read https://github.com/kataras/iris/tree/master/HISTORY.md
2016-06-14 08:45:40 +03:00
Makis Maropoulos
7f5fd1904b Remove the golang.org/x/net/context 2016-06-04 23:33:34 +03:00
Makis Maropoulos
26ef396959 Add history for v3.0.0.-beta.2. Some fixes to subdomains listening on local 127.0.0.1. Change GetURI to ParseURI
Examples and e-book updated also.
2016-06-04 23:07:19 +03:00
Makis Maropoulos
1a433e34d5 Wildcard subdomain full support | v3.0.0-beta.2
Update to v3.0.0-beta.2.
Wildcard subdomain e-book section:
https://kataras.gitbooks.io/iris/content/subdomains.html
2016-06-04 16:20:32 +03:00
Makis Maropoulos
dc2b40283e Iris cmd: download packages on every iris create command 2016-06-03 06:17:40 +03:00
Makis Maropoulos
05b6723b19 Implement a GetURI to get the full uri of a (named) route 2016-06-02 19:22:36 +03:00
Makis Maropoulos
8cd1cc2ac8 Iris is looking for a new website design and logo 2016-06-01 04:45:11 +03:00
Makis Maropoulos
c26668a489 Version 3.0.0-beta cleaned 2016-05-30 17:08:09 +03:00