Commit Graph

78 Commits

Author SHA1 Message Date
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
Makis Maropoulos
d76b73427b New: ListenVirtual and ListenTo specific configs - server_test fixed 2016-07-05 15:26:47 +02:00
Makis Maropoulos
afa5b57dc7 Add virtual listen same as NoListen- some changes in order the server_test no need any system modification 2016-07-05 14:29:32 +02:00
Makis Maropoulos
93dc7c7e48 Add some tests 2016-07-05 13:37:10 +02:00
Makis Maropoulos
126e170371 Add a Test framework to make it easier to test Iris app
I will commit the tests , mostly to see how this is working,  when I
finish with the front-end tests
2016-07-03 16:26:53 +02:00
Makis Maropoulos
c443dc9808 Fix semantic typo for Redirection via Route name 2016-07-03 10:38:03 +02:00
Makis Maropoulos
04cffe5750 Add an Available channel for special usage like testing different Listen methods 2016-07-01 19:06:11 +03:00
Makis Maropoulos
386201f73a Make iris easier for glide users
I am not pushing the /vendor package to this repository because of
possibility to break the framework. See here:
https://github.com/mattfarina/golang-broken-vendor
2016-06-30 17:33:08 +03:00
Makis Maropoulos
66a66fdfa0 Fix https://github.com/kataras/iris/issues/231 2016-06-30 05:58:04 +03:00
Makis Maropoulos
f57d457d39 Finish the feature request https://github.com/kataras/iris/issues/235#issuecomment-229383650 2016-06-29 18:49:09 +03:00
Makis Maropoulos
65184ddaca Second try for https://github.com/kataras/iris/issues/235#issuecomment-229350945
change the ListenToServer
to SecondaryListen which comes before the main listen, they are
non-blocking funcs now
2016-06-29 16:48:44 +03:00
Makis Maropoulos
20cd75139a Remove debug println 2016-06-29 16:27:48 +03:00
Makis Maropoulos
5b8f4dc1b0 Multiserver listening - Try first for https://github.com/kataras/iris/issues/235 - example added 2016-06-29 16:25:17 +03:00
Makis Maropoulos
aa319fd8e4 Handlebars support - Embrace the feature request https://github.com/kataras/iris/issues/239 2016-06-28 12:50:26 +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