Documentation
¶
Index ¶
- Variables
- type CookieWriter
- type SessionData
- type SessionRequestContextType
- type TestCookieSession
- func (t *TestCookieSession) Del(r *http.Request, fieldname string) error
- func (t *TestCookieSession) Get(r *http.Request, fieldname string, v interface{}) error
- func (t *TestCookieSession) IsNotFoundError(err error) bool
- func (t *TestCookieSession) MustLoad(w http.ResponseWriter, r *http.Request)
- func (t *TestCookieSession) MustSave(w http.ResponseWriter, r *http.Request)
- func (t *TestCookieSession) SessionData(r *http.Request) SessionData
- func (t *TestCookieSession) Set(r *http.Request, fieldname string, v interface{}) error
- func (t *TestCookieSession) SetSessionData(r *http.Request, data SessionData)
- func (t *TestCookieSession) Wrap(h http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextField = SessionRequestContextType("Session")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type CookieWriter ¶
type CookieWriter struct {
http.ResponseWriter
Session *TestCookieSession
// contains filtered or unexported fields
}
func (*CookieWriter) WriteHeader ¶
func (w *CookieWriter) WriteHeader(status int)
type SessionData ¶
type SessionRequestContextType ¶
type SessionRequestContextType string
type TestCookieSession ¶
func (*TestCookieSession) Del ¶
func (t *TestCookieSession) Del(r *http.Request, fieldname string) error
func (*TestCookieSession) Get ¶
func (t *TestCookieSession) Get(r *http.Request, fieldname string, v interface{}) error
func (*TestCookieSession) IsNotFoundError ¶
func (t *TestCookieSession) IsNotFoundError(err error) bool
func (*TestCookieSession) MustLoad ¶
func (t *TestCookieSession) MustLoad(w http.ResponseWriter, r *http.Request)
func (*TestCookieSession) MustSave ¶
func (t *TestCookieSession) MustSave(w http.ResponseWriter, r *http.Request)
func (*TestCookieSession) SessionData ¶
func (t *TestCookieSession) SessionData(r *http.Request) SessionData
func (*TestCookieSession) Set ¶
func (t *TestCookieSession) Set(r *http.Request, fieldname string, v interface{}) error
func (*TestCookieSession) SetSessionData ¶
func (t *TestCookieSession) SetSessionData(r *http.Request, data SessionData)
Click to show internal directories.
Click to hide internal directories.