Commit Graph

261 Commits

Author SHA1 Message Date
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
Makis Maropoulos
e9a4746000 Update to rc.2 | NEW: iris run main.go https://github.com/kataras/iris/issues/192
Not tested on linux yet,(I do not have a linux station now). Post an
issue if iris run main.go doesnt works as expected
2016-06-20 11:59:36 +03:00
Makis Maropoulos
5060cf4f5e linting 2016-06-18 01:11:03 +03:00
Makis Maropoulos
f21faa7cfd MustUse and MustUseFunc - registers middleware for all parties and subdomains - Subdomains don't care about registering order now
1st:
MustUse and MustUseFunc - registers middleware for all parties and
subdomains
2nd:
Subdomains don't care about registering order now
3rd:
iris control plugin realtime logger
2016-06-17 07:18:09 +03:00
Makis Maropoulos
0d482508fc Add ReadBufferSize and WriteBufferSize to the iris-ws, disable header copy also 2016-06-16 20:08:59 +03:00
Makis Maropoulos
647f0d704c Thanks goes to all of you you help building this (nice) framework - Update README and add errors on mux entry register 2016-06-16 05:24:01 +03:00
Makis Maropoulos
6a77c2ed22 Embrace the feature request for per-party layout https://github.com/kataras/iris/issues/180 2016-06-14 20:29:01 +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
721e9ef66f add {{ urlpath }} - returns the path without scheme & domain , near to the {{ url }} 2016-06-07 20:29:12 +03:00
Makis Maropoulos
c88f73acbe Update to v3.0.0-beta.4 - Logger changes book, examples updated 2016-06-06 21:04:38 +03:00
Makis Maropoulos
86694df84e Add FromAlias to the Mail service and some iriscontrol fixes 2016-06-06 13:25:09 +03:00
Makis Maropoulos
48aaca5bc0 Fix mail send, complete jade support, fix iriscontrol index , replace iriscontrol session to basicauth 2016-06-06 01:37:32 +03:00
Makis Maropoulos
91b45ebfdb FIx https://github.com/kataras/iris/issues/170 2016-06-05 13:39:45 +03:00
Makis Maropoulos
e40fe0a9f3 Implement the custom {{ url }} to the PongoEngine also 2016-06-05 02:17:17 +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
a337b4768d Nothing special: Linting 2016-06-03 05:11:50 +03:00
Makis Maropoulos
679b707751 E-mail through linux command with UseCommand configuration field 2016-06-02 23:29:29 +03:00
Makis Maropoulos
c2e4949b5f Banner at routine and faster animation 2016-06-02 19:45:13 +03:00
Makis Maropoulos
e5efa6c5d8 Print the banner at PreListen state with a smaller animation 2016-06-02 19:39:32 +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
79e984146e make Route's parse public 2016-06-02 18:32:20 +03:00
Makis Maropoulos
56a9fba34d https://github.com/kataras/iris/issues/167 2016-06-02 18:27:35 +03:00
Makis Maropoulos
bd13342149 continue at any case on print banner 2016-06-02 05:11:51 +03:00
Makis Maropoulos
28fff6cea9 Fix banner sometimes error because conc 2016-06-02 04:51:17 +03:00
Makis Maropoulos
9e03a529d6 One of the best requests https://github.com/kataras/iris/issues/165 2016-06-02 04:45:03 +03:00
Makis Maropoulos
7f56cdea8c E-mail sender 2016-06-01 15:29:38 +03:00
Makis Maropoulos
31cbd50fb0 Linting 2016-05-31 11:05:42 +03:00
Makis Maropoulos
c26668a489 Version 3.0.0-beta cleaned 2016-05-30 17:08:09 +03:00