Commit Graph

36 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
9b172fe4ab add a note about sessions transcoder, rel: https://github.com/kataras/iris/issues/1517#issuecomment-630256473
Former-commit-id: 3ac995ea77b4629dc7b0d580b9e36d9e302b96ee
2020-05-18 18:43:39 +03:00
Gerasimos (Makis) Maropoulos
47c3bad58d set iris logger to the sessiondb/badger logs and update deps
Former-commit-id: 7578dec5752cc2bfa012440c24d59f41425812f8
2020-05-17 22:08:43 +03:00
Gerasimos (Makis) Maropoulos
cd62ba3712 organise sessions examples
Former-commit-id: 682472d2cf4ebfc740687522fe5eef77b5bb1a72
2020-05-07 07:34:17 +03:00
Gerasimos (Makis) Maropoulos
b4365cee8d sessions: add GobTranscoder and document the DefaultTranscoder package-level variable
Former-commit-id: 631d52bb6d0eb0dbe2e7416517ec019c5902ca71
2020-05-07 01:14:41 +03:00
Gerasimos (Makis) Maropoulos
b657c5e6af don't fire ErrServerClosed on manually interrupt signals (CTRL/CMD+C)
Former-commit-id: 673c84dd13bb99c0926aa1b4a6b4eff9745403d8
2020-04-28 05:22:58 +03:00
Gerasimos (Makis) Maropoulos
0cf5d5a4a3 minor
Former-commit-id: 85c8b1e20da6e39485478025ef1b0f80ef953e4a
2020-04-21 09:27:28 +03:00
Gerasimos (Makis) Maropoulos
0d26f24eb7 examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
2020-03-05 22:41:27 +02:00
Gerasimos (Makis) Maropoulos
466978f1fe examples: minor
Former-commit-id: 7e86dfbbc496bdd33faad744c8242468d95d3055
2019-10-27 11:47:34 +02:00
Gerasimos (Makis) Maropoulos
c3a55462bd fix sessions.ErrNotFound.Equal example
Former-commit-id: 292eadaea9df1c680e68a3f92f86c8bf1edc2d7d
2019-10-26 19:27:58 +03:00
Gerasimos (Makis) Maropoulos
3945fa68d1 obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
07046ab978 formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00
Gerasimos (Makis) Maropoulos
b7bc89335d fix https://github.com/kataras/iris/issues/1330
Former-commit-id: 221e01638b671586cdab2b84518bd6a1c8d07bda
2019-08-09 08:24:58 +03:00
Gerasimos (Makis) Maropoulos
eb29a80753 redis sessiondb: support more than one driver - builtin redigo(default) and radix - rel to: #1328
Former-commit-id: 1eee58f2c49f64899fffc3ad61bcf074f8949cc1
2019-08-06 18:40:13 +03:00
Gerasimos (Makis) Maropoulos
913634384c minor
Former-commit-id: 64d2bc8657fce2ef4565e0d10dd0f412ee29ffc5
2019-08-03 08:40:48 +03:00
Gerasimos (Makis) Maropoulos
736709aa75 resolve conflicts with current master v11.1.1
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
076d9121f1 Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
2019-06-22 21:34:19 +03:00
Gerasimos (Makis) Maropoulos
b71d4032e6 replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
2019-06-22 14:46:20 +03:00
Gerasimos (Makis) Maropoulos
7af5f139e0 fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03: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
2acb6e9385 session examples: add the 'AllowReclaim: true' session.Config field to true, help users like https://github.com/kataras/iris/issues/1031\#issuecomment-399894693
Former-commit-id: 2ab7e56a4fda380fb52a8912a328797ba332f2c8
2018-06-25 20:21:52 +03:00
Gerasimos Maropoulos
f83e125d7f fix https://github.com/kataras/iris/issues/1020, redis database stores the int as float64, so make that type assertion on GetInt as well
Former-commit-id: d29abdfe3a39fa1e046acbc5d118421a153d9c04
2018-06-03 02:47:48 +03:00
Gerasimos Maropoulos
b22151d4b7 Update to version 10.6.1 | Re-implement the BoltDB as built'n session database and more. Please read the HISTORY file for further details
Former-commit-id: fa68a914bec5fe4f595bdeaea84ecab6374ba643
2018-04-25 05:29:19 +03:00
Gerasimos Maropoulos
b62080c4bb Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy) as requested by almost everyone. https://github.com/kataras/iris/issues/969
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Gerasimos (Makis) Maropoulos
4ab889da5f minor comment updates for sessions package
Former-commit-id: 6f73c5d83861a1f61acda07e7f78cb882320dc8c
2017-12-24 19:43:31 +02:00
kataras
666bcacf20 Update to version 8.5.5
Former-commit-id: b5be58709f17758a8df3ebc99270b97ccd8b18f2
2017-11-02 05:50:56 +02:00
Gerasimos (Makis) Maropoulos
e5600fcf0d Update to version 8.4.5 | Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-06-october-2017--v845 for more.
Former-commit-id: 4e30bf6a74acb7d463c7fcf1e9e08ca3147117a7
2017-10-06 08:23:03 +03:00
Gerasimos (Makis) Maropoulos
4fb78bbcd9 Update sessions/sessiondb/badger to its latest version and SessionController is able to initialize itself if session manager is not provided by the caller-dev.
Changes:

Update the badger database using transactions, as supported from yesterday via: 06242925c2

Add a custom `OnActivate` via mvc/activator/activate_listener.go, this can be used to perform any custom actions when the app registers the supported Controllers. See mvc/session_controller.go for the excellent use case.

errors.Reporter.AddErr returns true if the error is added to the stack, otherwise false


Former-commit-id: c896a2d186a4315643f3c5fdb4325f7ee48a9e0a
2017-10-06 01:19:10 +03:00
Gerasimos (Makis) Maropoulos
88b2343bd9 Implement "badger" kv store back-end for sessions
Former-commit-id: b9d85467238b5611d177b2b95ac9815cf5f8fe83
2017-09-24 14:32:16 +03:00
kataras
42b123975c 8.4.0 | New MVC Features | Refactor examples and godoc for go 1.9 use. Read HISTORY.md.
Former-commit-id: 90c05e743052bc3722e7fefaa0cbb0ed5153a1fb
2017-08-27 20:35:23 +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
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
8a7e718bb1 Session DB file storage: https://github.com/kataras/iris/issues/702 example added
Tested on Windows and worked, waiting for more testers.


Former-commit-id: 2b5be0202c1124f424d2276948c3203677f26a56
2017-08-02 21:52:53 +03:00
corebreaker
ef979cf541 Little change of session API + Update examples
Former-commit-id: e8c58b186acf1c8932af6e886dae7035f4d581c1
2017-08-01 08:34:18 +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