Commit Graph

395 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
69b5327ecc Update to Version 8.4.2 | Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md#fr-15-september-2017--v842

Former-commit-id: 0ee4cc1d93ef7f26e5d402fdfbe07062aff5b08c
2017-09-15 15:05:35 +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
kataras
591806795e Update to 8.4.0 | New macro type, new high-optimized MVC features. Read HISTORY.md
Former-commit-id: b72a23ba063be60a9750c8b1b0df024b0c8ed549
2017-08-27 18:46:04 +03:00
kataras
f7b655f145 Happy weekend! Due the latest news we have a single change for your own safety. iris.AutoTLS users should pass all the necessary information now, these are the recommended by letsencrypt.
Iris devs should declare all the information now, there is no option to "leave something out" anymore, it's for your own good. Version is not changed yet, giving you time to see that changelog and do the necessary changes to your codebase, it will written to HISTORY.md too of course.

Before:
app.Run(iris.AutoTLS(":443"))

Now:
app.Run(iris.AutoTLS(":443", "example.com", "mail@example.com")

Happy weekend!


Former-commit-id: f5314a8c1f8303d7216481d05129eb8a62766e14
2017-08-26 01:33:55 +03:00
kataras
83fbef2d2f Happy weekend! Due the latest news we have a single change for your own safety. iris.AutoTLS users should pass all the necessary information now, these are the recommended by letsencrypt.
Iris devs should declare all the information now, there is no option to "leave something out" anymore, it's for your own good. Version is not changed yet, giving you time to see that changelog and do the necessary changes to your codebase. Happy weekend!


Former-commit-id: 490ce14a1022a2b81d347d7f59c2bb5412cfcdf2
2017-08-26 01:28:30 +03:00
kataras
91bad4b82b Push v8.3.4 | Read HISTORY.md
Former-commit-id: e660dd91a4aae6d58c823f89cca733f02256c819
2017-08-23 17:01:51 +03:00
kataras
1ffe4479f7 Update to 8.3.3 | Even better MVC. Read HISTORY.md
Former-commit-id: 88998c317117abff1a214cf396b205d8d8ea888c
2017-08-23 01:11:52 +03:00
kataras
e12513a534 Update to 8.3.2 | Read HISTORY.md file
Former-commit-id: e6ab761989d596cb004c39e65e04e8968d9461ab
2017-08-22 13:00:24 +03:00
kataras
8c1a4da804 Update to v8.3.1 | MVC: RelPath and RelTmpl implemented. Read HISTORY.md
Read HISTORY.md

https://github.com/kataras/iris/blob/master/HISTORY.md#sa-19-august-2017--v831

Former-commit-id: 23f7c1c0dc3bc64f27db591a9b22cd5934337891
2017-08-19 21:54:33 +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
35620f6ecb Update to 8.2.6 | More on Iris Controllers: optional EndRequest. Read HISTORY.md
Former-commit-id: 5255ca5c4a898e2f3e7388f3af0457599e65f87f
2017-08-14 16:21:51 +03:00
kataras
8cd07719a6 Update to 8.2.5 | Say Hello to Controllers. Read HISTORY.md
Former-commit-id: 70f8619440497d132362da86c5187bcc57f8687b
2017-08-13 21:58:34 +03:00
kataras
960ddb9f72 Push v8.2.4, it contains a bugfix for StaticWeb with gzip | Read HISTORY.md
Maybe we'll have to investigate it more some time, but for now I think we are ok, it's working as expected except the content-length canno be reported because we get the compressed size after the gzip writer.Write and we can't send headers after its underline writer which is the ResponseWriter, a solution for that is to use a temp bytes.Buffer but this will slow down the performance, users who need to know the size can use a temp writer instead for theirselves.


Former-commit-id: a4400ca5db526998a646fd5880ca67358fa72c0f
2017-08-12 09:08:42 +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
85cfaa2874 Prev Commit: Update to 8.2.3 | Read HISTORY.md | Now: Improve version checker's messages
Former-commit-id: 2d773e9ef04ce4595167eb57784fc9113aeccab0
2017-08-10 21:34:05 +03:00
kataras
bf929aa557 Update to 8.2.3 | Fix https://github.com/kataras/iris/issues/714
Former-commit-id: 67ec32dd9ca5f228f56b2b73196cfa9c2ae94474
2017-08-10 21:15:26 +03:00
kataras
4da5cd47f1 Update to 8.2.2 | Google reCAPTCHA. Read HISTORY.md
Former-commit-id: dc8ee74fa33b2fbc41659c9097955afb152d5a6f
2017-08-10 15:21:42 +03:00
hiveminded
be8295eb50 simple version checker ✌️
Former-commit-id: 077b9c9816211c84adda864a832acf8c1296eeaf
2017-08-09 17:12:24 +03:00
kataras
056f9a9415 Update to 8.2.1 | LevelDB-based session database implemented, Read HISTORY.md
Former-commit-id: 4e341b185aedaaa9a04fdebe43b4364dec59e3c8
2017-08-08 16:00:34 +03:00
kataras
92d0b146df remove MaxAgeSeconds from redis sessiondb - now it derives from the sessions configuration automatically. Add option to use an existing BoltDB connection on boltdb sessiondb.
TODO: leveldb sessiondb

Former-commit-id: 8cb781bf089ab7b9a09dccc633454db9c6077610
2017-08-08 12:31:42 +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
f143d506a0 Add support for fatal leveled logs via iris' logger
Former-commit-id: 99f6d55201a3f6f774be7f2b89c8244f82f846d8
2017-08-02 15:10:02 +03:00
kataras
6231f96d5f Add a note for the latest history entry written by @hiveminded , only go1.9 users can use reference to iris.Party
Former-commit-id: 8821d33c40e7e5fda80895703b2131db4ed7c83e
2017-08-02 14:31:34 +03:00
kataras
d664f3f0d6 Better documentation for the Application#Logger()
Former-commit-id: 7d70c7ffba9ae6a94b600b85b078714dd943a7da
2017-08-02 04:22:15 +03:00
hiveminded
4533be64b4 push version 8.1.3 👍
Former-commit-id: 88d9e73e291dd871f995f6362ef73032fc0c92d2
2017-08-01 22:32:53 +03:00
hiveminded
9143ccec6e add PartyFunc and gofmt -s -w . 🔷
Former-commit-id: a3809498a45140d691f3f235ad9cb25239d495a2
2017-08-01 22:25:08 +03:00
kataras
8dc4779ef5 Add iris#ConfigureHost as an alternative way to interact with the app's hosts.
Former-commit-id: 5f36f44b86b70818c4c0c6ef7c178b550cc4ac46
2017-07-31 19:11:58 +03:00
kataras
6432759dbf Give an easier and more permant solution for https://github.com/kataras/iris/pull/689
Former-commit-id: 8dc16d15f7bd14cb98b91b16d7d6b1bd756132bd
2017-07-29 04:27:58 +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
kataras
726d89fd1b fix https://github.com/kataras/iris/issues/683#issuecomment-317229068
Former-commit-id: a42c54708297e6fed78d6fdc2b7cd5ee91c9574b
2017-07-23 12:10:51 +03:00
hiveminded
11f2f296ba push version 8.0.6 🎬
Former-commit-id: 0024f1b9acc1621b1672d5b7484a26dff2f9992e
2017-07-22 23:32:14 +03:00
hiveminded
90b8c1af44 update to 8.0.5 fix django binary loader and remove logrus from vendor
Fix django binary loading was maden by @corebreaker, look the history file for more information.


Former-commit-id: 707d359ea7357baf7bd60208def813dbd9260ddb
2017-07-22 02:20:47 +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
56aa3de645 Update to 8.0.3 | Request logger improvements, error handlers improvements. Read HISTORY.md
Former-commit-id: fb5eca0dc955d8c07fdba35b47068008565dbbd1
2017-07-16 13:58:10 +03:00
kataras
5752625c80 Update to 8.0.2. Read HISTORY.md for the surpise
Former-commit-id: bbdf020ccaa986c332716aa7f749b7bdc24e427e
2017-07-15 17:40:29 +03:00
hiveminded
16ccb2edc4 omit errors received by the server via configuration 🍪 | requested by https://github.com/kataras/iris/issues/668
relative link: https://github.com/kataras/iris/issues/668


Former-commit-id: 6491abd68b74e18bf4ed0b32406e67597c9b55a9
2017-07-13 16:31:36 +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
a10e80842f Update to 7.1.1. Read HISTORY.md
Fix https://github.com/iris-contrib/community-board/issues/11

Read the latest fixes and features by visiting: https://github.com/kataras/iris/blob/master/HISTORY.md


Former-commit-id: 7f35481f917673d0bbb356a4816d9cf54cc0c9ba
2017-06-13 09:06:10 +03:00
kataras
e4df35e351 Fix https://github.com/iris-contrib/community-board/issues/10 and upgrade the minor version number
Former-commit-id: 02f6656aceb890217bfc19688d7f45224df274ec
2017-06-12 18:23:35 +03:00
kataras
74989ad0a1 Remove internal/cmd/gen, it has no use for the end-developer.
Former-commit-id: 12bead9d379c6644e391c482fe71b2e88263376c
2017-06-11 23:58:34 +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
5fa9789c35 Simplify the basicauth middleware
Former-commit-id: 8d184a434c992a884c5565bc22767ef295a1575a
2017-06-10 15:28:09 +03:00
kataras
6ab00aa02f Update to 7.0.3. Read HISTORY.md
Former-commit-id: fc5a3c7ab655116ddf0dcb9c1c1657080d096c69
2017-06-10 05:28:17 +03:00
kataras
c4f5fae561 a bit linting and some tests are online again
Former-commit-id: bd5463a169a36b078dba1c1b6e7dd3ffbd627617
2017-06-10 03:31: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
6282a71a6f 7.0.1 - https://github.com/iris-contrib/community-board/issues/1 https://github.com/iris-contrib/community-board/issues/2
Read HISTORY.md


Former-commit-id: 82df2d266055818ffafe0ba66b58cf4ed9089922
2017-06-07 07:20:53 +03:00
kataras
40b9449ffd Nothing important here 👽
Former-commit-id: eb2034a1078829472365eeb65884824a1be014c3
2017-06-05 03:35:44 +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
esemplastic
3e5f61ff6b Fix httpcache sub-package.
Former-commit-id: d0bf86713bda90ade130c93dcf04d9b26f1e4f08
2017-04-12 01:25:42 +03:00
Gerasimos (Makis) Maropoulos
7a6cf4c5aa Add (10) more _examples. TOC: https://github.com/kataras/iris/tree/v6/_examples
Part 3.


Former-commit-id: 229b86baca4043c69517968318d9a962d2e026d0
2017-03-24 02:25:00 +02:00
Gerasimos (Makis) Maropoulos
221334f8cb Readme Update
Former-commit-id: ed3f825945b51aa4cafd231c2ad7eb5fa1270852
2017-03-22 05:45:03 +02:00
Gerasimos (Makis) Maropoulos
0733ea37c0 Enhance the view engine's example for {{url ...}} and {{urlpath ...}} tmpl funcs for reverse routing.
Former-commit-id: ec3cda69e5cbe5a04842150011b3788b70055572
2017-03-19 02:06:15 +02:00
Gerasimos (Makis) Maropoulos
d51c0b7b50 Implement feature request: http://support.iris-go.com/d/29-mark-cookie-for-session-as-secure
Example:

app := iris.New()
app.Adapt(httprouter.New())
// IMPORTANT
cookieName := "mycustomsessionid"
// AES only supports key sizes of 16, 24 or 32 bytes.
// You either need to provide exactly that amount or you derive the key
from what you type in.
hashKey := []byte("the-big-and-secret-fash-key-here")
blockKey := []byte("lot-secret-of-characters-big-too")
secureCookie := securecookie.New(hashKey, blockKey)

app.Adapt(sessions.New(sessions.Config{
Cookie: cookieName,
Encode: secureCookie.Encode,
Decode: secureCookie.Decode,
}))

Former-commit-id: 6fe5ce6cb834d55862242e08405fad4e721caa5b
2017-03-18 12:22:20 +02:00
Gerasimos (Makis) Maropoulos
1f5a274cae Nothing special yet: Readme updates and gofmt -s -w . (including vendor)
Former-commit-id: b275e55b7cd90392772c49f72e8ecd644bf0634c
2017-03-03 04:54:18 +02:00
Gerasimos (Makis) Maropoulos
a6fc0072ff Organising kataras/go-fs. No api changes for these changes don't worry. See previous commit's description for more info.
Former-commit-id: 8af960e5e4e5f7c8816140ac912328b9c524370b
2017-03-01 19:17:32 +02:00
Gerasimos (Makis) Maropoulos
57aea4aa75 Move the kataras/go-serializer into one iris' file.
Start organising the kataras/go-*package which are relative to the Iris
project. The kataras/go-*package will be exists and their features will
be adapted to Iris every 2 months, as we say at readme, iris-relative
packages should be tested for a long time before adapted to Iris.

With this way we have stability, code readability(the developer can
easly navigate to iris' code without need to move across different
kataras/ projects).


Former-commit-id: db291faaf59d4f53f14ce5800fde805f56c8b802
2017-03-01 15:04:42 +02:00
Gerasimos (Makis) Maropoulos
064282036c Helpers for third-party adaptors and middleware authors to generate route paths without even know the router that has being selected by user
Former-commit-id: b21147f2bc306d5c41539a1be0c83456c3d62651
2017-02-28 15:01:18 +02:00
Gerasimos (Makis) Maropoulos
b214df742b Nothing special: when iris.DevLogger() used then group logs based on time.
Former-commit-id: 921e2d5baabd3d299f4a719ef0a0abd924bc3bc9
2017-02-28 05:37:53 +02:00
Gerasimos (Makis) Maropoulos
9597fab37c Add error message when reverse routing using gorillamux happens before boot
Former-commit-id: 96dd812a16338824474ba1be0db18c486b2ebc0d
2017-02-18 08:18:09 +02:00
Gerasimos (Makis) Maropoulos
f83c7fb4e7 Fix history big mistakes, point links to /v6 tag only https://github.com/kataras/iris/issues/606
Former-commit-id: e0a7ce1a991e5d6600de6cc0a853ef8b1cb8d282
2017-02-18 07:22:57 +02:00
Gerasimos (Makis) Maropoulos
7263649002 Make ExecRouteAgainst to work better and fix gorillamux and httprouter, remove of contextlinker policy it's useless now
Former-commit-id: 8d3501e6c490d630d3a4bec0c077dcd7d532242f
2017-02-18 07:03:37 +02:00
Gerasimos (Makis) Maropoulos
9a3c4f4c0a Add an example for httprouter_test, gofmt everything and misspel fixes.
Former-commit-id: e69ffdf9bba4c7e8c3df45c015b3363cc3fc59b6
2017-02-17 10:45:47 +02:00
Gerasimos (Makis) Maropoulos
48b470f5da Add HTTP/2 Example and Websocket wss:// too in the same time :)
Former-commit-id: fd4c12043d6ed739770236e014ccd2f0f4f5a84c
2017-02-17 06:49:54 +02:00
Gerasimos (Makis) Maropoulos
929b00a24b HTTP/2 Push https://github.com/kataras/iris/issues/565
Former-commit-id: 32af4dd8ef18a5fb2fa88aa8b87e71a594faa6f2
2017-02-17 04:57:51 +02:00
Gerasimos (Makis) Maropoulos
21a18d0990 Add the new Go 1.8 Shutdown | Remove DisableBanner, is controlled by LoggerPolicy now.
Former-commit-id: 6ef71a4b9f5a79160a42d1111dd924e244ce1f4e
2017-02-17 04:46:33 +02:00
Gerasimos (Makis) Maropoulos
2a4997cadf Add listen and proxy tests
Former-commit-id: 7c89556942af8e9c6966022323cb9746db446cfc
2017-02-17 02:55:26 +02:00
Gerasimos (Makis) Maropoulos
fa5b529634 Update readme
Former-commit-id: 825f79a9cc8eedb2026906ce28ebf795c7c0b158
2017-02-17 00:09:04 +02:00
Gerasimos (Makis) Maropoulos
a132e7cebc Update README.md
Former-commit-id: 6f1ee755e36aeba65367a3ec276bd10d21d45343
2017-02-16 23:54:00 +02:00
Gerasimos (Makis) Maropoulos
155d3f2d87 Align doc.go
Former-commit-id: 65f2eb1a8bb7de832c854d78c6b245f8b7d7764b
2017-02-16 18:33:36 +02:00
Gerasimos (Makis) Maropoulos
dd1d6837d9 Add the ability to use .yaml/yml files for the Configuration.
Former-commit-id: 0c49eb04d991aabf67970fe7f7b3ed969a36a708
2017-02-16 05:00:08 +02:00
Gerasimos (Makis) Maropoulos
40b62f2958 gofmt everything, even the vendor.
Former-commit-id: c2bf34c63b5cc6c974ce2b3bcf04bb1c9b77efaf
2017-02-16 03:26:02 +02:00
Gerasimos (Makis) Maropoulos
13e83fc57e SessionsPolicy and sessions adaptor, history and _example written.
Former-commit-id: e8b0dde3cb3b72919f01b9d836d8ccb3d4e20214
2017-02-15 20:06:19 +02:00
Gerasimos (Makis) Maropoulos
82afcc5aa6 Implement the websocket adaptor, a version of kataras/go-websocket, and refactor all of the previous websocket examples.
https://github.com/kataras/go-websocket/issues/27

Former-commit-id: 0b7e52e0a61150a8bba973ef653986d8b3ddd26b
2017-02-15 08:40:43 +02:00
Gerasimos (Makis) Maropoulos
86f34dc5df Fix https://github.com/kataras/go-websocket/issues/27 on iris.v6 too
Former-commit-id: 29b1ea2ff313bdaeb719c242e08c5d5c9149156a
2017-02-14 20:32:36 +02:00
Gerasimos (Makis) Maropoulos
244a59e055 20 days of unstoppable work. Waiting fo go 1.8, I didn't finish yet, some touches remains.
Former-commit-id: ed84f99c89f43fe5e980a8e6d0ee22c186f0e1b9
2017-02-14 05:54:11 +02:00
Gerasimos (Makis) Maropoulos
5aaec72634 Update to 6.1.4 - Align with the improved kataras/go-sessions 2017-02-07 02:37:35 +02:00
Gerasimos (Makis) Maropoulos
2a911a450c Add DisableBodyConsumptionOnUnmarshal configuration field as discussed on [chat](https://kataras.rocket.chat/channel/iris). Read HISTORY.md 2017-01-30 12:35:43 +02:00
Gerasimos (Makis) Maropoulos
73b8396cd6 https://github.com/iris-contrib/plugin/blob/master/cors/plugin.go#L28 2017-01-27 14:25:48 +02:00
Gerasimos (Makis) Maropoulos
7dfb13cfbd Nothing special here 2017-01-25 22:19:06 +02:00
Gerasimos (Makis) Maropoulos
306a709c04 Add a tip with a link on how to change the default Router. Remove the comic, not everybody has houmor. 2017-01-14 05:17:46 +02:00
Gerasimos (Makis) Maropoulos
f380d710cc Update to 6.1.2 2017-01-13 05:57:46 +02:00
Gerasimos (Makis) Maropoulos
3489ba3365 Offling routing and prioritize others before static handlers https://github.com/kataras/iris/issues/585
Read HISTORY.md
2017-01-12 10:24:27 +02:00
Gerasimos (Makis) Maropoulos
c91a1e6628 |You will love this| New Feature: Offline routing, dynamic changes against a route's state | https://github.com/kataras/iris/issues/585
Read HISTORY.md for details
2017-01-12 08:28:30 +02:00
Gerasimos (Makis) Maropoulos
020e857b22 Update to 6.1.0 2017-01-12 00:57:07 +02:00
Gerasimos (Makis) Maropoulos
23f9ad13a1 Catch os.Interrupt signal with iris.PostInterrupt example added in comments.
https://github.com/iris-contrib/examples/tree/master/os_interrupt
2017-01-11 18:01:29 +02:00
Gerasimos (Makis) Maropoulos
5ad7c6e01f Update to 6.0.9: Add PostInterrupt plugin. Read HISTORY.md
- Add `PostInterrupt` plugin, useful for customization of the
**os.Interrupt** singal, before that Iris closed the server
automatically.

```go
iris.Plugins.PostInterrupt(func(s *Framework){
// when os.Interrupt signal is fired the body of this function will be
fired,
// you're responsible for closing the server with s.Close()

// if that event is not registered then the framework
// will close the server for you.

/* Do  any custom cleanup and finally call the s.Close()
remember you have the iris.Plugins.PreClose(func(s *Framework)) event
too
so you can split your logic in two logically places.
*/

})

```
2017-01-11 16:23:38 +02:00
Gerasimos (Makis) Maropoulos
e4ab993760 Nothing special here, read HISTORY.md 2017-01-10 15:03:02 +02:00
Gerasimos (Makis) Maropoulos
053588babd Update to 7.0.8 | iris.UseTemplateFunc -> Read HISTORY.md | Remove vendor folder because of: https://github.com/gavv/httpexpect/pull/34
Read HISTORY.md
2017-01-10 14:21:49 +02:00
Gerasimos (Makis) Maropoulos
893271bf02 Update to 6.0.7 2017-01-10 08:54:39 +02:00
Gerasimos (Makis) Maropoulos
c476fe8921 Feature Request: *http.Request access from Websockets. iris.Config.Websocket.IDGenerator custom connection's ID generator added too.
Example:

-
https://github.com/iris-contrib/examples/blob/master/websocket/main.go#L34

Relative commits to kataras/go-websocket:
-
550fc8b32e

-
62c2d989d8
2017-01-09 06:23:49 +02:00
Gerasimos (Makis) Maropoulos
5daa3d6fa7 Add iris.DestroySessionByID(string) and iris.DestroyAllSessions() as requested. Read HISTORY.md
c9d94b7b44
2017-01-08 06:18:02 +02:00
Gerasimos (Makis) Maropoulos
bcc35c11ca Add iris.DestroySessionByID(string) and iris.DestroyAllSessions() as requested. 2017-01-08 06:11:50 +02:00
Gerasimos (Makis) Maropoulos
d060a73559 https://github.com/iris-contrib/gitbook/issues/30 2017-01-05 18:59:15 +02:00
Gerasimos (Makis) Maropoulos
d5a9410e2a Update to 6.0.3: Add an easy way to set a request body size limit per client or globally for newcomers 2017-01-04 21:29:58 +02:00
Gerasimos (Makis) Maropoulos
3b0a8e0f2d Fix https://github.com/kataras/iris/issues/574 2017-01-04 19:50:54 +02:00
Gerasimos (Makis) Maropoulos
058d70e533 Update to 6.0.1 - use the response recorder whenever you need it. Read HISTORY.md 2017-01-04 15:16:53 +02:00
Gerasimos (Makis) Maropoulos
8bbd9f8fc5 Happy new year! Update to 6.0.0 | HTTP/2 full support. https://github.com/kataras/iris/issues/565
full commit from development branch.

Examples, book, middleware, plugins are updated to the latest iris
version. Read HISTORY.md for more.

The 'old' v5 branch which relied on fasthttp exists for those who want
to use it navigate there: https://github.com/kataras/iris/tree/5.0.0
2017-01-02 21:20:17 +02:00
Gerasimos (Makis) Maropoulos
ced2083ab3 Fix https://github.com/kataras/iris/issues/570 | no-internet connection but Config.CheckForUpdates is true 2016-12-31 14:40:19 +02:00
Gerasimos (Makis) Maropoulos
fe79fdea44 Fix https://github.com/kataras/iris/issues/566 2016-12-22 19:07:03 +02:00
Gerasimos (Makis) Maropoulos
88c98bb1e1 More on Transactions: Fallback on, unexpected, panics and able to send 'silent' error which stills reverts the changes but no output 2016-12-18 14:08:28 +02:00
Gerasimos (Makis) Maropoulos
f54dc697cc More on Transactions: iris.UseTransaction and iris.DoneTransaction. See HISTORY.md 2016-12-16 10:20:05 +02:00
Gerasimos (Makis) Maropoulos
48e770dab0 Update to 5.1.1 - Addons for the last feature, Transaction scopes. Read HISTORY.md
Read HISTORY.md and example here:
github.com/iris-contrib/examples/tree/master/transactions
2016-12-15 17:16:17 +02:00
Gerasimos (Makis) Maropoulos
65980d3363 New Feature: Request-Scoped Transactions
Example:
https://github.com/iris-contrib/examples/tree/master/request_transactions
2016-12-15 15:14:48 +02:00
Gerasimos (Makis) Maropoulos
309b037e3b Update to 5.0.4 - Read HISTORY.md 2016-12-12 12:18:59 +02:00
Gerasimos (Makis) Maropoulos
619a54a9f2 Fix an old issue https://github.com/kataras/iris/issues/355 2016-11-22 16:46:07 +02:00
Gerasimos Maropoulos
8b88aabc05 Update to 5.0.2 - Cache(only) improvements
Cache - only improvements
2016-11-15 20:20:29 +02:00
Gerasimos Maropoulos
7b2bcc19cd Fix url typo as reported here: https://github.com/kataras/iris/issues/531 2016-11-13 11:12:59 +02:00
Gerasimos Maropoulos
5e4db0e56b Update DONATIONS.md 2016-11-07 15:15:22 +02:00
Gerasimos Maropoulos
504006a7bb Add a link to the stable version on the Installation section 2016-10-31 21:21:11 +02:00
Gerasimos Maropoulos
32e3cbede1 Prepare for 4.0.0 gopkg.in for-ever package (All 20+ other repositories refactored) including gitbook and examples 2016-10-31 08:19:00 +02:00
Gerasimos Maropoulos
6f22da7622 Nothing special here, remote cache is not ready yet
Remote Cache is not inside docs or history because it's not ready for
production yet, however it seems to works fine, but until I test it on
more than 2kk requests I will not add this on history or docs. The
upcoming 24 hours I will upload a relative package which will combine
all cache features to one
2016-10-28 21:55:00 +03:00
Gerasimos Maropoulos
3243432d48 A small improvement to LETSENCRYPT and LETSENCRYPTPROD
just  an improvement to the `LETSENCRYPT` in order to meet your needs,
it lets you configure the cache file to any directory  or to disable it
by passing "" as the second argument.

**OUTLINE**
```
// ListenLETSENCRYPT starts a server listening at the specific nat
address
// using key & certification taken from the letsencrypt.org 's servers
// it's also starts a second 'http' server to redirect all
'http://$ADDR_HOSTNAME:80' to the' https://$ADDR'
// it creates a cache file to store the certifications, for performance
reasons, this file by-default is "./letsencrypt.cache"
// if you skip the second parameter then the cache file is
"./letsencrypt.cache"
// if you want to disable cache then simple pass as second argument an
empty emtpy string ""
//
// example:
https://github.com/iris-contrib/examples/blob/master/letsencyrpt/main.go
//
// supports localhost domains for testing,
// NOTE: if you are ready for production then use
`$app.Serve(iris.LETSENCRYPTPROD("mydomain.com"))` instead
ListenLETSENCRYPT(addr string, cacheFileOptional ...string)
```

**OVERVIEW**
```
package main

import "github.com/kataras/iris"

func main() {
iris.Get("/", func(ctx *iris.Context) {
ctx.Write("Hello from SECURE SERVER!")
})

iris.ListenLETSENCRYPT("mydomain.com", "./mycachefile.cache)
}

```
2016-10-28 21:21:57 +03:00
Gerasimos Maropoulos
7eb520fc6b [2] Continue working on #513 2016-10-28 11:13:12 +03:00
Gerasimos Maropoulos
d32ae1377c Implement Cache as https://github.com/kataras/iris/issues/513
I love coding unique Iris staff!!!
2016-10-27 03:17:09 +03:00
Gerasimos Maropoulos
ee9b153f6d gofmted -s 2016-10-25 16:49:57 +03:00
Gerasimos Maropoulos
78d145c207 Introduce version 5.0.1 2016-10-25 15:58:18 +03:00
Gerasimos Maropoulos
5c896b39a5 V4 LTS, check the HISTORY.md 2016-10-21 03:06:50 +03:00
Gerasimos Maropoulos
9bbbbf6769 StaticEmbedded: Do the actual work if cache duration passed
For StaticEmbedded example take a look at the HISTORY.md file
2016-10-17 04:43:31 +03:00
Gerasimos Maropoulos
1a913d45d4 Implement feature request for embedded assets
Example:
https://github.com/iris-contrib/examples/tree/master/static_files_embedded

Read HISTORY.md
2016-10-17 03:37:57 +03:00
Gerasimos Maropoulos
ee5dff96e3 For v4.6.0 - Remove unused testFramework from the previous commit
Read HISTORY.md for changes:
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-10-13 17:28:23 +03:00
Gerasimos Maropoulos
157e3cf054 Push version 4.6.0, read HISTORY.md
Real commit is the parent, as usual
2016-10-13 17:25:50 +03:00
Gerasimos Maropoulos
122aab4083 Update to 4.6.0, read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-10-13 17:25:01 +03:00
Gerasimos Maropoulos
f2a7b4e43a Update to 5.4.3, zero user changes. 2016-10-13 04:02:04 +03:00
Gerasimos Maropoulos
9bce4e846a Update to 4.5.2 2016-10-11 22:35:12 +03:00
Gerasimos Maropoulos
40b000c20f Update to 4.5.1 2016-10-11 14:10:19 +03:00
Gerasimos Maropoulos
f66b7e2eab Update to 4.5.0 2016-10-09 21:09:53 +03:00
Gerasimos Maropoulos
14982891c5 Update to 4.4.9 2016-10-09 07:47:27 +03:00
Gerasimos Maropoulos
a000da35c3 Update to 4.4.8 - Custom decoders for ReadJSON/ReadXML, read HISTORY.md
Read: https://github.com/kataras/iris/blob/master/HISTORY.md
2016-10-06 23:19:55 +03:00
Gerasimos Maropoulos
bffd2074eb Update to 4.4.7 2016-10-05 13:21:40 +03:00
Gerasimos Maropoulos
2090eb4d83 Update to 4.4.6 2016-10-04 01:18:17 +03:00
Gerasimos Maropoulos
f39b6c4bfb DONATIONS update summary 2016-10-03 17:23:53 +03:00
Gerasimos Maropoulos
fe4b8bd7d2 Fix https://github.com/kataras/iris/issues/455 occurs from last changes 2016-10-02 07:28:36 +03:00
Gerasimos Maropoulos
3970804a37 Update to 4.4.4 2016-10-02 07:21:44 +03:00
Gerasimos Maropoulos
78f3323ce4 Update to 4.4.3 2016-10-02 03:30:37 +03:00
Gerasimos Maropoulos
716b5001da Fix https://github.com/iris-contrib/middleware/issues/13 2016-09-30 18:48:48 +03:00
Gerasimos Maropoulos
5e7975d97f Able to change logger's prefix and output after configuration 2016-09-30 14:02:03 +03:00
Gerasimos Maropoulos
c2144a83c6 Update DONATIONS.md summary 2016-09-29 20:17:42 +03:00
Gerasimos Maropoulos
f4b4dd0275 Implementation of https://github.com/kataras/iris/issues/412 , as requested. Read HISTORY for a code snippet 2016-09-29 17:05:22 +03:00
Gerasimos Maropoulos
5c98c5a493 Update to v4.4.0 Implementation of https://github.com/kataras/iris/issues/438
Read HISTORY.md
2016-09-27 16:28:38 +03:00
Gerasimos Maropoulos
60947d4f21 Update to 4.3.0, align with latest kataras/go-websocket 2016-09-20 10:15:45 +03:00
Gerasimos Maropoulos
f33053675c Update to 4.2.9 2016-09-19 01:48:37 +03:00
Gerasimos Maropoulos
7882d736b5 Update to 4.2.8 2016-09-19 01:42:37 +03:00
Gerasimos Maropoulos
d00bd8e595 nothing special here 2016-09-18 21:57:15 +03:00
Gerasimos Maropoulos
4eee3e5f53 Export the funcs: AcquireCtx and ReleaseCtx, see previous commit for more 2016-09-18 07:21:35 +03:00
Gerasimos Maropoulos
131eddb701 Ability to change the whole default router 2016-09-18 06:55:44 +03:00
Gerasimos Maropoulos
27f2ba7be9 Update DONATIONS.md summary & iris updater runs async unless CheckForUpdatesSync is true 2016-09-18 00:50:10 +03:00
Gerasimos Maropoulos
e24d45f66a Update to 4.2.5 2016-09-16 21:16:48 +03:00
Gerasimos Maropoulos
3915aa4361 cover the default station's upate( https://github.com/kataras/iris/issues/401 ) action 2016-09-16 10:25:56 +03:00
Gerasimos Maropoulos
c818b9d4bf Implement a version checker, as requested here: https://github.com/kataras/iris/issues/401
Read the README.md
2016-09-16 10:02:18 +03:00
Gerasimos Maropoulos
741ecbf2fb https://github.com/kataras/iris/issues/423 2016-09-15 18:59:27 +03:00
Gerasimos Maropoulos
7ea334812f Align with the latest go-sessions 2016-09-13 07:54:44 +03:00
Gerasimos Maropoulos
787425e5c5 Donations Summary Update and a small fix 2016-09-12 23:25:17 +03:00
Gerasimos Maropoulos
97431f2650 Replace response engines with serializers, same job but organized better, read README.md , no front-end changes if you used default engines. 2016-09-10 07:23:02 +03:00
Gerasimos Maropoulos
f561b7a90d Update to 4.2.0 - Configuration changes (big but old way still works, naming changes) & Implement https://github.com/kataras/iris/issues/409 2016-09-09 08:09:03 +03:00
Gerasimos Maropoulos
1a7c79db66 Update to 4.1.7. Logger changes, read HISTORY.md 2016-09-07 07:36:23 +03:00
Gerasimos Maropoulos
a073e442fc Align sessions with the latest kataras/go-sessions. Now you should update :) 2016-09-05 13:08:32 +03:00
Gerasimos Maropoulos
1537a657c0 Nothing really special, but tests seems to match better with old-style .New() on contextPool although I though that was the same thing... 2016-09-05 12:10:45 +03:00
Gerasimos Maropoulos
482c108839 Remove unused Plugin's custom callbacks. 2016-09-05 03:56:28 +03:00
Gerasimos Maropoulos
27e21d2685 (from previous commit) fix sessions init when UseDatabaseDB before session manager 2016-09-04 22:09:54 +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
c38a9b2459 Developers can ignore this update. Replace the template engines with a new cross-framework package (kataras/go-template) 2016-09-02 06:05:44 +03:00
Gerasimos Maropoulos
6163726bc5 Replace utils/file with go-fs and go-installer, fix previous tests 2016-09-01 06:34:55 +03:00
Gerasimos Maropoulos
1d49188da9 Developers can ignore this update. Use of go-websocket and go-errors. Zero front-end changes. No real improvements. 2016-09-01 06:01:53 +03:00
Gerasimos Maropoulos
2d067ac081 Update to 4.1.1 - Able to set Sessions.CookieLength. Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-08-18 03:20:59 +03:00
Gerasimos Maropoulos
bef334868b Update to 4.1.0, New: SSH Remote control, READ HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-08-17 12:57:54 +03:00
Gerasimos Maropoulos
ca2e46f1c3 Fix multi websocket servers https://github.com/kataras/iris/issues/365 2016-08-16 13:17:26 +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
56bd511427 Stable v4.0.0.
All releases happens one-per-month, with new features at each stable
release, you had complains so that stops, the next release will may not
be available on next month, but it will take longers, this release
should be the most iris stable version you can get now.
2016-08-09 22:48:09 +03:00
Gerasimos Maropoulos
a4fbf4db4e Fix https://github.com/kataras/iris/issues/350 2016-08-09 22:12:03 +03:00
Gerasimos Maropoulos
2b364817c3 Nothing special here
On websocket:
https://github.com/kataras/iris/issues/340#issuecomment-237612680
2016-08-04 19:49:12 +03:00
Gerasimos Maropoulos
6f83c48a10 Update to v4.0.0-alpha.5 - Letsencrypt integration https://github.com/kataras/iris/issues/220 . 4 Fixes. Read HISTORY.md
## 4.0.0-alpha.4 -> 4.0.0-alpha.5

- **NEW FEATURE**: Letsencrypt.org
integration[*](https://github.com/kataras/iris/issues/220)
- example
[here](https://github.com/iris-contrib/examples/blob/master/letsencrypt/main.go)
- **FIX**: (ListenUNIX adds :80 to
filename)[https://github.com/kataras/iris/issues/321]
- **FIX**: (Go-Bindata +
ctx.Render)[https://github.com/kataras/iris/issues/315]
- **FIX** (auto-gzip doesn't really compress data in latest
code)[https://github.com/kataras/iris/issues/312]
2016-07-29 01:33:20 +03:00
Gerasimos Maropoulos
5f76942b52 no need to duplicate ourselves 2016-07-26 21:53:52 +03:00
Gerasimos Maropoulos
81019aa90d Nothing special here - set the ability to set a virtual scheme for the server, used inside global tmpl helper funcs 2016-07-26 21:50:14 +03:00
Gerasimos Maropoulos
6f5c83272b prepend the slash on party.API if the developer forgotten that https://github.com/kataras/iris/issues/293#issuecomment-234966015 2016-07-25 17:18:50 +03:00
Gerasimos Maropoulos
952caa493e Done/DoneFunc are kept to use for the child route parties also 2016-07-25 16:02:51 +03:00
Gerasimos Maropoulos
f3e216c738 .Done/.DoneFunc as requested, examples: https://github.com/iris-contrib/examples/tree/master/middleware_2
https://github.com/iris-contrib/examples/tree/master/middleware_2 &&
https://github.com/iris-contrib/examples/tree/master/middleware_3
2016-07-25 15:53:12 +03:00
Gerasimos Maropoulos
d10273391a Fix https://github.com/kataras/iris/issues/312 2016-07-25 14:45:12 +03:00
Gerasimos Maropoulos
aa26a89533 Fix https://github.com/kataras/iris/issues/293 2016-07-21 23:08:42 +03:00
Gerasimos Maropoulos
85a2e98ba4 Try #https://github.com/kataras/iris/issues/275 2016-07-21 20:33:00 +03:00
Gerasimos Maropoulos
352b297977 Fix https://github.com/iris-contrib/sessiondb/issues/1 2016-07-20 20:23:54 +03:00
Gerasimos Maropoulos
7ed5ed4519 Iris 4.0.0-alpha.4. Book is finally updated https://kataras.gitbooks.io/iris/content/ also 2016-07-20 06:33:24 +03:00
Gerasimos Maropoulos
69a4f11718 Fix https://github.com/kataras/iris/issues/303 2016-07-19 08:48:57 +03:00
Gerasimos Maropoulos
b93ac27034 Set the session's configuration to a pointer 2016-07-19 06:19:37 +03:00
Gerasimos Maropoulos
d04edb96bb Add Response Engines on the README, examples updated. book is the next step 2016-07-19 05:43:34 +03:00
Gerasimos Maropoulos
d90cfaea81 Nothing special here, read the HISTORY.md for 4.0.0-alpha.3 release
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-07-18 18:16:58 +03:00
Gerasimos Maropoulos
675c0d510c Update to 4.0.0-alpha.3 - Response Engines, 'inject' the context.JSON/JSONP/Text/Data/Markdown/Render, Read HISTORY.md
## 4.0.0-alpha.2 -> 4.0.0-alpha.3

**New**

A **Response Engine** gives you the freedom to create/change the
render/response writer for

- `context.JSON`
- `context.JSONP`
- `context.XML`
- `context.Text`
- `context.Markdown`
- `context.Data`
- `context.Render("my_custom_type",mystructOrData{},
iris.RenderOptions{"gzip":false,"charset":"UTF-8"})`
- `context.MarkdownString`
- `iris.ResponseString(...)`

**Fix**
- https://github.com/kataras/iris/issues/294

**Small changes**

- `iris.Config.Charset`, before alpha.3 was `iris.Config.Rest.Charset` &
`iris.Config.Render.Template.Charset`, but you can override it at
runtime by passinth a map `iris.RenderOptions` on the `context.Render`
call .
- `iris.Config.IsDevelopment` , before alpha.1 was
`iris.Config.Render.Template.IsDevelopment`

**Websockets changes**

No need to import the `github.com/kataras/iris/websocket` to use the
`Connection` iteral, the websocket moved inside `kataras/iris` , now all
exported variables' names have the prefix of `Websocket`, so the old
`websocket.Connection` is now `iris.WebsocketConnection`.

Generally, no other changes on the 'frontend API', for response engines
examples and how you can register your own to add more features on
existing response engines or replace them, look
[here](https://github.com/iris-contrib/response).

**BAD SIDE**: E-Book is still pointing on the v3 release, but will be
updated soon.
2016-07-18 17:40:42 +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
74aeb081ee move the template engines manager to the iris-contrib/template 2016-07-13 14:54:56 +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
0995331f78 Fix broken configs from last commit 2016-07-12 19:21:26 +02:00
Makis Maropoulos
e61d1f8c3c Extend Read & Write BufferSize header and max request body size is 8mb now 2016-07-12 15:40:06 +02:00
Makis Maropoulos
6761d58e53 Final v3 2016-07-08 19:41:50 +02:00
Makis Maropoulos
52099314e6 Prepare for custom child router(s) via plugin(s) for tomorrow 2016-07-07 23:59:00 +02:00
Makis Maropoulos
e3b2c68085 Parse server's addr before use it 2016-07-07 17:17:34 +02: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
01914b6c37 Fasthttp seems have little bug with headers, so make a VisitAllCookies function and GetFlashes completed- tests added also 2016-07-07 00:25:50 +02:00
Makis Maropoulos
2cc75817b7 Add support for more than one listening server to one station, virtual and no virtual 2016-07-06 20:24:34 +02:00