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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user