Commit Graph

13 Commits

Author SHA1 Message Date
Anton Lindstrom d42994de5c Refactor parts of the code and add more tests
This is a refactor of parts of the code, some minor things such as adding
punctuation in the end of sentences and making the code a bit easier to read.

More tests has been added in the form of gometalinter which checks the code
health, style and spelling errors. The flaky cleanup test should also be fixed
with this commit.
2016-07-21 20:02:52 +00:00
Marin Bek 22d954a682 NewPGStore should not ignore errors 2016-02-24 13:29:35 +01:00
Carlos Alexandro Becker c10f375a5e Improved docs for #10 2015-09-17 19:49:25 -03:00
Anton Lindström 44eb1e8a22 Add underscores when querying column names
This commit aims to fix tests which fails on not finding columns such as
`expireson`. Adding the underscore that are used when creating the table
should fix this.

An issue with this is that it must have worked previously without underscores.
In that case this might break existing usage.
2015-09-15 11:11:49 +00:00
Carlos Alexandro Becker b96a0c781e Allowing the use of an existing database/sql pool 2015-09-09 09:07:11 -03:00
Carlos Alexandro Becker 7c98dee240 added missing docs and fixed vet warns 2015-09-08 10:21:43 -03:00
Matt Silverlock ab9eca674d Provide method to set MaxAge on underlying cookies.
- Addresses https://github.com/gorilla/sessions/issues/48
2015-08-11 20:13:41 +08:00
Josh Holloway ad7b0ee0eb Added MaxLength support port of: https://github.com/boj/redistore/pull/5 2015-07-15 15:08:34 +01:00
Jacob Walker cbe9f2afe4 Make a copy of Options for each new session 2015-05-06 11:10:11 -05:00
Anton Lindström b205a0ee64 remove repeated assignment in Save(), fixes #2 2014-06-09 16:19:20 +00:00
Anton Lindström 5c8fa0fe70 remove unused fmt code 2014-05-20 06:09:24 +00:00
Hans Lawrenz 53ec9b3310 Fix save function to actually update database record. Add a test. 2014-05-19 10:50:30 -04:00
Anton Lindström ef9866c6f5 initial commit 2014-01-07 17:15:27 +00:00