1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-26 06:17:03 +00:00

Update to 4.1.4. Users & Devs can ignore this update. Read HISTORY.md for more

This commit is contained in:
Gerasimos Maropoulos
2016-09-04 22:02:31 +03:00
parent c38a9b2459
commit b8b52ad46e
8 changed files with 66 additions and 536 deletions

View File

@@ -2,26 +2,13 @@ package context
import (
"bufio"
"github.com/kataras/go-sessions"
"github.com/valyala/fasthttp"
"io"
"time"
"github.com/valyala/fasthttp"
)
type (
// Session is the domain-level session's store interface
// it's synced with the iris/sessions.go:session
Session interface {
ID() string
Get(string) interface{}
GetString(key string) string
GetInt(key string) int
GetAll() map[string]interface{}
VisitAll(cb func(k string, v interface{}))
Set(string, interface{})
Delete(string)
Clear()
}
// IContext the interface for the iris/context
// Used mostly inside packages which shouldn't be import ,directly, the kataras/iris.
@@ -87,7 +74,7 @@ type (
GetFlashes() map[string]string
GetFlash(string) (string, error)
SetFlash(string, string)
Session() Session
Session() sessions.Session
SessionDestroy()
Log(string, ...interface{})
GetRequestCtx() *fasthttp.RequestCtx