1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

Sessions from map[interface{}]interface{} to [string]interface{} - no one used object as keys so I change its type

This commit is contained in:
Makis Maropoulos
2016-07-01 17:00:24 +03:00
parent 950964b18d
commit c6e6c39946
4 changed files with 59 additions and 29 deletions

View File

@@ -5,14 +5,14 @@ import "time"
// IStore is the interface which all session stores should implement
type IStore interface {
Get(interface{}) interface{}
GetString(key interface{}) string
GetInt(key interface{}) int
Set(interface{}, interface{}) error
Delete(interface{}) error
Get(string) interface{}
GetString(string) string
GetInt(string) int
Set(string, interface{}) error
Delete(string) error
Clear() error
VisitAll(func(interface{}, interface{}))
GetAll() map[interface{}]interface{}
VisitAll(func(string, interface{}))
GetAll() map[string]interface{}
ID() string
LastAccessedTime() time.Time
SetLastAccessedTime(time.Time)