alexedwards / scs

HTTP Session Management for Go
MIT License
2.13k stars 166 forks source link

{mem,pg}store: hide internals #29

Closed srenatus closed 6 years ago

srenatus commented 6 years ago

Before, the way *cache.Cache and *sql.DB were embedded in in Memstore and PGStore respectively, a caller could access their methods. This didn't seem like a clear separation.

Now, only the Store interface methods will be public methods of (Memstore), and (PGStore).

alexedwards commented 6 years ago

Thanks! Now merged.